Skip to content

Commit abb5231

Browse files
ejbnetman92
authored andcommitted
docs(ngDisabled): Clarify "incorrect" example
Add obvious label to example of incorrect usage. To a user scanning the docs (ie. me) it's easy to miss the fact that this top example doesn't actually work. Closes angular#11192
1 parent 7aefff8 commit abb5231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ng/directive/attrs.js

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
* but not on older IEs:
168168
*
169169
* ```html
170+
* <!-- See below for an example of ng-disabled being used correctly -->
170171
* <div ng-init="isDisabled = false">
171172
* <button disabled="{{isDisabled}}">Disabled</button>
172173
* </div>

0 commit comments

Comments
 (0)