Skip to content

Commit

Permalink
docs: fix typo in injected variable name (angular#23315)
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.

PR Close angular#23315
  • Loading branch information
jtheoof authored and wKoza committed Apr 13, 2018
1 parent 74f4657 commit d951d01
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 d951d01

Please sign in to comment.