mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: add note on importing AppRoutingModule (#34710)
Fixes #21207 PR Close #34710
This commit is contained in:
parent
f2952403dd
commit
bbeb0605ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue