From 993eeababb49fddb7eb10954afd17925417c18be Mon Sep 17 00:00:00 2001 From: Jeremy Attali Date: Wed, 11 Apr 2018 10:29:11 -0400 Subject: [PATCH] docs: fix typo in injected variable name (#23315) 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 #23315 --- aio/content/examples/testing/src/app/demo/demo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/examples/testing/src/app/demo/demo.ts b/aio/content/examples/testing/src/app/demo/demo.ts index 674bc14a57..5312032c8b 100644 --- a/aio/content/examples/testing/src/app/demo/demo.ts +++ b/aio/content/examples/testing/src/app/demo/demo.ts @@ -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