parent
398f024b24
commit
e9e2a4152e
|
@ -30,7 +30,7 @@
|
||||||
<my-cmp (myEvent)="action()">
|
<my-cmp (myEvent)="action()">
|
||||||
<my-cmp [(myProp)]="prop">
|
<my-cmp [(myProp)]="prop">
|
||||||
<input #myInput>`,
|
<input #myInput>`,
|
||||||
<template ngFor="#my-item" [ngForOf]=items #myIndex="index">
|
<template ngFor="#myItem" [ngForOf]=items #myIndex="index">
|
||||||
```
|
```
|
||||||
|
|
||||||
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).
|
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).
|
||||||
|
|
|
@ -38,7 +38,7 @@ Notes:
|
||||||
- `<my-cmp (my-event)="action()">` should be changed to `<my-cmp (myEvent)="action()">`,
|
- `<my-cmp (my-event)="action()">` should be changed to `<my-cmp (myEvent)="action()">`,
|
||||||
- `<my-cmp [(my-prop)]="prop">` should be changed to `<my-cmp [(myProp)]="prop">`,
|
- `<my-cmp [(my-prop)]="prop">` should be changed to `<my-cmp [(myProp)]="prop">`,
|
||||||
- `<input #my-input>` should be changed to `<input #myInput>`,
|
- `<input #my-input>` should be changed to `<input #myInput>`,
|
||||||
- `<template ng-for #my-item [ng-for-of]=items #my-index="index">` should be changed to `<template ngFor #my-item [ngForOf]=items #myIndex="index">`,
|
- `<template ng-for #my-item [ng-for-of]=items #my-index="index">` should be changed to `<template ngFor #myItem [ngForOf]=items #myIndex="index">`,
|
||||||
|
|
||||||
Note: while the tag names are now case-sensitive the best practice is to keep them lower-dash-cased so that the browser
|
Note: while the tag names are now case-sensitive the best practice is to keep them lower-dash-cased so that the browser
|
||||||
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).
|
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).
|
||||||
|
|
|
@ -1060,8 +1060,8 @@ export var Attribute: AttributeFactory = makeParamDecorator(AttributeMetadata);
|
||||||
*
|
*
|
||||||
* ```html
|
* ```html
|
||||||
* <seeker>
|
* <seeker>
|
||||||
* <div #find-me>...</div>
|
* <div #findMe>...</div>
|
||||||
* <div #find-me-too>...</div>
|
* <div #findMeToo>...</div>
|
||||||
* </seeker>
|
* </seeker>
|
||||||
*
|
*
|
||||||
* @Component({
|
* @Component({
|
||||||
|
|
Loading…
Reference in New Issue