Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import { LoginComponent } from './login/login.component';
  2. import { NgModule } from '@angular/core';
  3. import { CommonModule } from '@angular/common';
  4. import { RouterModule , Routes } from '@angular/router';
  5.  
  6.  
  7.  
  8. const routes: Routes = [
  9. { path: '', redirectTo: '/login' , pathMatch: 'full' },
  10. { path: 'login', component: LoginComponent },
  11. { path: 'highsales', loadChildren: './modules/features/features.module#FeaturesModule' },
  12. { path: '**', redirectTo: '' },
  13. ];
  14.  
  15.  
  16.  
  17. @NgModule({
  18. imports: [
  19. CommonModule,
  20. RouterModule.forRoot(routes)
  21. ],
  22. declarations: [],
  23. exports: [
  24. RouterModule
  25. ]
  26. })
  27.  
  28.  
  29. export class AppRoutingModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement