From d80ad951c66754959d446b7e450bd5d45ecafb55 Mon Sep 17 00:00:00 2001 From: Sam Severance Date: Wed, 28 Apr 2021 10:49:31 -0400 Subject: [PATCH] docs: correct toh router tutorial (#41859) * `SelectivePreloadingStrategyService` is already provided in the root module, so it should not be added to `AppRoutingModule` providers array PR Close #41859 --- aio/content/guide/router-tutorial-toh.md | 1 - 1 file changed, 1 deletion(-) diff --git a/aio/content/guide/router-tutorial-toh.md b/aio/content/guide/router-tutorial-toh.md index 00f64c745d..3e1ebe0eb7 100644 --- a/aio/content/guide/router-tutorial-toh.md +++ b/aio/content/guide/router-tutorial-toh.md @@ -2803,7 +2803,6 @@ But first, make a few changes to the `AppRoutingModule`. 1. Import `SelectivePreloadingStrategyService` into `AppRoutingModule`. 1. Replace the `PreloadAllModules` strategy in the call to `forRoot()` with this `SelectivePreloadingStrategyService`. -1. Add the `SelectivePreloadingStrategyService` strategy to the `AppRoutingModule` providers array so you can inject it elsewhere in the app. Now edit the `AdminDashboardComponent` to display the log of preloaded routes.