1 | import { NgModule } from '@angular/core';
|
2 | import { Routes, RouterModule } from '@angular/router';
|
3 |
|
4 | const routes: Routes = [
|
5 | {
|
6 | path: '',
|
7 | redirectTo: 'hello',
|
8 | pathMatch: 'full'
|
9 | }
|
10 | ];
|
11 |
|
12 | console.log('route', routes);
|
13 |
|
14 | ({
|
15 | imports: [RouterModule.forRoot(routes)],
|
16 | exports: [RouterModule],
|
17 | providers: []
|
18 | })
|
19 | export class AppRoutingModule { }
|