mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Added an import command to the 'Adding a new view' tutorial. (#3366)
This commit is contained in:
parent
5e7eb08383
commit
13343657a6
@ -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.
|
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
|
```ts
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
{ path: 'path-in-the-app', component: ExistingComponent },
|
{ path: 'path-in-the-app', component: ExistingComponent },
|
||||||
{ path: '**', component: PageNotFoundComponent }
|
{ path: '**', component: PageNotFoundComponent }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user