From 3ab31a4be6f32a7bdead9319661c79a2eb99da7c Mon Sep 17 00:00:00 2001 From: firrae Date: Wed, 1 Aug 2018 09:28:33 -0400 Subject: [PATCH] docs: update to account for CLI changes (#25223) This should help clarify the use of providedIn and correct the documentation where it was showing the use of a now depreciated CLI command flag. I am openly looking for feedback on this change to figure out the best wording. PR Close #25223 --- aio/content/tutorial/toh-pt4.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/aio/content/tutorial/toh-pt4.md b/aio/content/tutorial/toh-pt4.md index f15751d651..a382104e31 100644 --- a/aio/content/tutorial/toh-pt4.md +++ b/aio/content/tutorial/toh-pt4.md @@ -89,15 +89,8 @@ Registering the provider in the `@Injectable` metadata also allows Angular to op
-If you need to, you can register providers at different levels: -in the `HeroesComponent`, in the `AppComponent`, in the `AppModule`. -For instance, you could have told the CLI to provide the service at the module level automatically by appending `--module=app`. - - - ng generate service hero --module=app - - -To learn more about providers and injectors, see the [Dependency Injection guide](guide/dependency-injection). +To learn more about providers, see the [Providers section](guide/providers). +To learn more about injectors, see the [Dependency Injection guide](guide/dependency-injection).