SHARE
TWEET

Untitled

a guest Jun 26th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const routes: Routes = [
  2. {
  3.     path: 'dashboard',
  4.     component: SistemaComponent,
  5.     canActivate: [SistemaLiberadoGuard,
  6.         SistemaGuard],
  7.         data: {
  8.             title: 'dashboard'
  9.         }
  10.     },
  11.     {
  12.         path: 'login',
  13.         component: S4LoginComponent,
  14.         canActivate: [ LoginGuard ],
  15.         data: {
  16.             title: 'login'
  17.         }
  18.     },
  19.     {
  20.         path: 'usuarios',
  21.         loadChildren: './usuario-perfil-permissoes/usuario-perfil-permissoes.module#UsuarioPerfilPermissoesModule'
  22.     },
  23.     {
  24.         path: 'liberacaosistema',
  25.         loadChildren: './liberacao-sistema/liberacao-sistema.module#LiberacaoSistemaModule',
  26.     },
  27.     {
  28.         path: 'profileusuario',
  29.         loadChildren: './profile/profile.module#ProfileModule',
  30.     },
  31.     {
  32.         path: '',
  33.         pathMatch: 'full',
  34.         redirectTo: 'dashboard'
  35.     },
  36.     {
  37.         path: '**',
  38.         component: S4NotFoundComponent,
  39.         data: {
  40.             title: 'Page Not Found'
  41.         }
  42.     }
  43.  
  44. ]
  45. @NgModule({
  46.     imports: [
  47.         RouterModule.forRoot(routes, { useHash: true })
  48.     ],
  49.     exports: [RouterModule]
  50. })
  51.      
  52. export const routes: Routes = [
  53.   {
  54.       path: '',
  55.       component: ProfileComponent,
  56.       canActivate: [SistemaGuard],
  57.       data: {
  58.             title: 'Profile'
  59.       }
  60.   }
  61. ]
  62.  
  63. @NgModule({
  64.     imports: [
  65.         RouterModule.forChild(routes)
  66.     ],
  67.     exports: [RouterModule]
  68. })
  69. export class ProfileRoutingModule {
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top