Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fcc556d

Browse files
committed
docs(guide.forms): fix the forms dev guide to use ng-disabled
1 parent 5c0ec9d commit fcc556d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/dev_guide.forms.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ This allows us to extend the above example with these features:
146146
required /><br />
147147
<div ng-show="!user.agree || !user.agreeSign">Please agree and sign.</div>
148148

149-
<button ng-click="reset()" disabled="{{isUnchanged(user)}}">RESET</button>
149+
<button ng-click="reset()" ng-disabled="isUnchanged(user)">RESET</button>
150150
<button ng-click="update(user)"
151-
disabled="{{form.$invalid || isUnchanged(user)}}">SAVE</button>
151+
ng-disabled="form.$invalid || isUnchanged(user)">SAVE</button>
152152
</form>
153153
</div>
154154

0 commit comments

Comments
 (0)