Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import {NgModule} from "@angular/core";
  2. import {RouterModule, Route} from "@angular/router";
  3.  
  4. import {StatsComponent} from "./stats/stats-2017/stats-2017.component";
  5.  
  6. const APP_ROUTES : Route[] = [
  7.     { path: '',   redirectTo: '/stats17', pathMatch: 'full' },
  8.     { path: 'stats17', component: StatsComponent}
  9. ];
  10.  
  11. @NgModule({
  12.     imports: [RouterModule.forRoot(APP_ROUTES)],
  13.     exports: [RouterModule]
  14. })
  15.  
  16. export class AppRoutingModule {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement