Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit f4223c7

Browse files
Foxandxsswardbell
authored andcommitted
docs(lifecycle-hooks): update directive selector to camelCase
closes #1236
1 parent 6c0c635 commit f4223c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/docs/_examples/lifecycle-hooks/ts/app/spy.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {Spy} from './spy.directive';
1616
<button (click)="reset()">Reset Heroes</button>
1717
</p>` +
1818
// #docregion template
19-
`<div *ngFor="let hero of heroes" my-spy class="heroes">
19+
`<div *ngFor="let hero of heroes" mySpy class="heroes">
2020
{{hero}}
2121
</div>`
2222
// #enddocregion template

public/docs/_examples/lifecycle-hooks/ts/app/spy.directive.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ let nextId = 1;
66

77
// #docregion spy-directive
88
// Spy on any element to which it is applied.
9-
// Usage: <div my-spy>...</div>
10-
@Directive({selector: '[my-spy]'})
9+
// Usage: <div mySpy>...</div>
10+
@Directive({selector: '[mySpy]'})
1111
export class Spy implements OnInit, OnDestroy {
1212

1313
constructor(private _logger:LoggerService) { }

0 commit comments

Comments
 (0)