i looked @ documentation ng-form:
http://docs.angularjs.org/api/ng.directive:ngform
but gives me no examples , still confused. have table input fields , check if fields on table unchanged? don't want include in form wondering if can use ng-form.
my html looks this:
<form name="itemform"> <table> .... </table> <button type="submit" data-ng-disabled="itemform.$pristine"> </form>
can ng-form directive enclosed in div
, still set name in same way?
yes can ng-form
directive also
demo: fiddle
Comments
Post a Comment