Advertisement
Guest User

Untitled

a guest
May 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import {NgModule} from "@angular/core";
  2. import {RouterModule} from "@angular/router";
  3. import {NewsComponent} from "./news.component";
  4.  
  5. const newsRoutes = [
  6. {
  7. path: '',
  8. component: NewsComponent
  9. }
  10. ];
  11.  
  12. @NgModule({
  13. imports: [RouterModule.forChild(newsRoutes)],
  14. exports: [RouterModule]
  15. })
  16. export class NewsRoutingModule {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement