From 13343657a61ea0c9d301b48c02c6a3faa7e94bcf Mon Sep 17 00:00:00 2001 From: Francesco Corti Date: Tue, 22 May 2018 17:40:59 +0200 Subject: [PATCH] Added an import command to the 'Adding a new view' tutorial. (#3366) --- docs/tutorials/new-view.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorials/new-view.md b/docs/tutorials/new-view.md index e752f40a8a..34c97283a3 100644 --- a/docs/tutorials/new-view.md +++ b/docs/tutorials/new-view.md @@ -23,6 +23,8 @@ For further details about creating a component, refer to the tutorial [here](new An Angular application has one singleton instance of the `Router` service that is used to match the browser's URL with the corresponding component to display. The `Router` service must be configured in a Typescript file with a syntax similar to the following source code. ```ts +import { Routes, RouterModule } from '@angular/router'; + const appRoutes: Routes = [ { path: 'path-in-the-app', component: ExistingComponent }, { path: '**', component: PageNotFoundComponent }