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>
|
<button (click)="reset()">Reset Heroes</button>
|
||||||
</p>` +
|
</p>` +
|
||||||
// #docregion template
|
// #docregion template
|
||||||
`<div *ngFor="let hero of heroes" my-spy class="heroes">
|
`<div *ngFor="let hero of heroes" mySpy class="heroes">
|
||||||
{{hero}}
|
{{hero}}
|
||||||
</div>`
|
</div>`
|
||||||
// #enddocregion template
|
// #enddocregion template
|
||||||
|
|
|
@ -6,8 +6,8 @@ let nextId = 1;
|
||||||
|
|
||||||
// #docregion spy-directive
|
// #docregion spy-directive
|
||||||
// Spy on any element to which it is applied.
|
// Spy on any element to which it is applied.
|
||||||
// Usage: <div my-spy>...</div>
|
// Usage: <div mySpy>...</div>
|
||||||
@Directive({selector: '[my-spy]'})
|
@Directive({selector: '[mySpy]'})
|
||||||
export class Spy implements OnInit, OnDestroy {
|
export class Spy implements OnInit, OnDestroy {
|
||||||
|
|
||||||
constructor(private _logger:LoggerService) { }
|
constructor(private _logger:LoggerService) { }
|
||||||
|
|
Loading…
Reference in New Issue