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

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions public/docs/_examples/lifecycle-hooks/ts/app/spy.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) { }
Expand Down