Advertisement
Guest User

AngularJS

a guest
Apr 19th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import { RouterModule } from '@angular/router';
  2. import { HomeComponent } from './home/home.component';
  3. import { AboutComponent } from './about/about.component';
  4.  
  5. const appRoutes = [
  6. { path: '', component: HomeComponent },
  7. { path: 'about', component: AboutComponent }
  8. ];
  9.  
  10.  
  11. export const appRouting = RouterModule.forRoot(appRoutes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement