docs(lifecycle-hooks): update directive selector to camelCase

closes #1236
This commit is contained in:
Foxandxss 2016-05-01 21:27:19 +02:00 committed by Ward Bell
parent 6c0c6357a9
commit f4223c7049
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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) { }