mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 20:31:52 +00:00
docs(guide.forms): fix the forms dev guide to use ng-disabled
This commit is contained in:
parent
5c0ec9d06d
commit
fcc556df37
1 changed files with 2 additions and 2 deletions
|
|
@ -146,9 +146,9 @@ This allows us to extend the above example with these features:
|
||||||
required /><br />
|
required /><br />
|
||||||
<div ng-show="!user.agree || !user.agreeSign">Please agree and sign.</div>
|
<div ng-show="!user.agree || !user.agreeSign">Please agree and sign.</div>
|
||||||
|
|
||||||
<button ng-click="reset()" disabled="{{isUnchanged(user)}}">RESET</button>
|
<button ng-click="reset()" ng-disabled="isUnchanged(user)">RESET</button>
|
||||||
<button ng-click="update(user)"
|
<button ng-click="update(user)"
|
||||||
disabled="{{form.$invalid || isUnchanged(user)}}">SAVE</button>
|
ng-disabled="form.$invalid || isUnchanged(user)">SAVE</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue