Guest User

Untitled

a guest
Jul 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3.  
  4. import { HomeComponent } from './home/home.component';
  5. import { HowToComponent } from './how-to/how-to.component';
  6. import { PricingComponent } from './pricing/pricing.component';
  7. import { SupportComponent } from './support/support.component';
  8.  
  9. const routes: Routes = [
  10. { path: '', redirectTo: '/home', pathMatch: 'full' },
  11. { path: 'home', component: HomeComponent },
  12. { path: 'how-to', component: HowToComponent },
  13. { path: 'pricing', component: PricingComponent },
  14. { path: 'support', component: SupportComponent }
  15. ];
  16.  
  17. @NgModule({
  18. imports: [ RouterModule.forRoot(routes) ],
  19. exports: [ RouterModule ]
  20. })
  21. export class RoutingModule {}
Add Comment
Please, Sign In to add comment