X Tutup
Skip to content

Commit e9e2a41

Browse files
Cody Lundquistvsavkin
authored andcommitted
docs: fix variable name, change to camelCase
closes angular#5801
1 parent 398f024 commit e9e2a41

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<my-cmp (myEvent)="action()">
3131
<my-cmp [(myProp)]="prop">
3232
<input #myInput>`,
33-
<template ngFor="#my-item" [ngForOf]=items #myIndex="index">
33+
<template ngFor="#myItem" [ngForOf]=items #myIndex="index">
3434
```
3535

3636
The full migration instruction can be found at [angular2/docs/migration/kebab-case.md](https://github.com/angular/angular/blob/master/modules/angular2/docs/migration/kebab-case.md).

modules/angular2/docs/migration/kebab-case.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Notes:
3838
- `<my-cmp (my-event)="action()">` should be changed to `<my-cmp (myEvent)="action()">`,
3939
- `<my-cmp [(my-prop)]="prop">` should be changed to `<my-cmp [(myProp)]="prop">`,
4040
- `<input #my-input>` should be changed to `<input #myInput>`,
41-
- `<template ng-for #my-item [ng-for-of]=items #my-index="index">` should be changed to `<template ngFor #my-item [ngForOf]=items #myIndex="index">`,
41+
- `<template ng-for #my-item [ng-for-of]=items #my-index="index">` should be changed to `<template ngFor #myItem [ngForOf]=items #myIndex="index">`,
4242

4343
Note: while the tag names are now case-sensitive the best practice is to keep them lower-dash-cased so that the browser
4444
treat them as custom elements. Using dashes in custom element names is required by the [Custom Element HTML Spec](http://www.w3.org/TR/custom-elements/#concepts).

modules/angular2/src/core/metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,8 @@ export var Attribute: AttributeFactory = makeParamDecorator(AttributeMetadata);
10601060
*
10611061
* ```html
10621062
* <seeker>
1063-
* <div #find-me>...</div>
1064-
* <div #find-me-too>...</div>
1063+
* <div #findMe>...</div>
1064+
* <div #findMeToo>...</div>
10651065
* </seeker>
10661066
*
10671067
* @Component({

0 commit comments

Comments
 (0)
X Tutup