docs(lifecycle-hooks): update directive selector to camelCase
closes #1236
This commit is contained in:
parent
6c0c6357a9
commit
f4223c7049
|
@ -16,7 +16,7 @@ import {Spy} from './spy.directive';
|
|||
<button (click)="reset()">Reset Heroes</button>
|
||||
</p>` +
|
||||
// #docregion template
|
||||
`<div *ngFor="let hero of heroes" my-spy class="heroes">
|
||||
`<div *ngFor="let hero of heroes" mySpy class="heroes">
|
||||
{{hero}}
|
||||
</div>`
|
||||
// #enddocregion template
|
||||
|
|
|
@ -6,8 +6,8 @@ let nextId = 1;
|
|||
|
||||
// #docregion spy-directive
|
||||
// Spy on any element to which it is applied.
|
||||
// Usage: <div my-spy>...</div>
|
||||
@Directive({selector: '[my-spy]'})
|
||||
// Usage: <div mySpy>...</div>
|
||||
@Directive({selector: '[mySpy]'})
|
||||
export class Spy implements OnInit, OnDestroy {
|
||||
|
||||
constructor(private _logger:LoggerService) { }
|
||||
|
|
Loading…
Reference in New Issue