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

Commit 893d2f8

Browse files
henrikbtford
authored andcommitted
docs(ngDisabled): clarify "don't do this" example
It's not clear until you read the whole thing that it's an explanation of what *not* to do and why, so if you scan the page from the top, you may use this bad solution.
1 parent effc98f commit 893d2f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/booleanAttrs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
*
161161
* @description
162162
*
163-
* The following markup will make the button enabled on Chrome/Firefox but not on IE8 and older IEs:
163+
* We shouldn't do this, because it will make the button enabled on Chrome/Firefox but not on IE8 and older IEs:
164164
* ```html
165165
* <div ng-init="scope = { isDisabled: false }">
166166
* <button disabled="{{scope.isDisabled}}">Disabled</button>

0 commit comments

Comments
 (0)