Skip to content

Commit

Permalink
docs(demo): fix typo in injected variable name
Browse files Browse the repository at this point in the history
The service injected is `ValueService`, however the name of the variable
does not reflect that. It's actually confusing since it's the name of
the `class` being created.
  • Loading branch information
jtheoof committed Apr 11, 2018
1 parent b3a10e0 commit 6fa59fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio/content/examples/testing/src/app/demo/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export class ValueService {
// #docregion MasterService
@Injectable()
export class MasterService {
constructor(private masterService: ValueService) { }
getValue() { return this.masterService.getValue(); }
constructor(private valueService: ValueService) { }
getValue() { return this.valueService.getValue(); }
}
// #enddocregion MasterService

Expand Down

0 comments on commit 6fa59fd

Please sign in to comment.