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

Commit ddc7f85

Browse files
Yi EungJunpetebacondarwin
Yi EungJun
authored andcommitted
docs(guide/Directives): use more standard data-ng-model in example
Use data-ng-model instead of data-ng:model which is accepted for legacy reason. The next "Normalization" section is saying: > Best Practice: Prefer using the dash-delimited format (e.g. ng-bind for > ngBind). If you want to use an HTML validating tool, you can instead use the > data-prefixed version (e.g. data-ng-bind for ngBind). The other forms > shown above are accepted for legacy reasons but we advise you to avoid > them. Closes #11960
1 parent 90621a6 commit ddc7f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/directive.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ In the following example, we say that the `<input>` element **matches** the `ngM
5151
The following also **matches** `ngModel`:
5252

5353
```html
54-
<input data-ng:model="foo">
54+
<input data-ng-model="foo">
5555
```
5656

5757
### Normalization

0 commit comments

Comments
 (0)