docs: add note on importing AppRoutingModule (#34710)
Fixes #21207 PR Close #34710
This commit is contained in:
parent
8815ace418
commit
0083443050
|
@ -106,7 +106,7 @@ The `<router-outlet>` tells the router where to display routed views.
|
|||
<div class="alert is-helpful">
|
||||
|
||||
The `RouterOutlet` is one of the router directives that became available to the `AppComponent`
|
||||
because `AppModule` imports `AppRoutingModule` which exported `RouterModule`.
|
||||
because `AppModule` imports `AppRoutingModule` which exported `RouterModule`. The `ng generate` command you ran at the start of this tutorial added this import because of the `--module=app` flag. If you manually created `app-routing.module.ts` or used a tool other than the CLI to do so, you'll need to import `AppRoutingModule` into `app.module.ts` and add it to the `imports` array of the `NgModule`.
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue