Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const routes: Routes = [
- {
- path: 'dashboard',
- component: SistemaComponent,
- canActivate: [SistemaLiberadoGuard,
- SistemaGuard],
- data: {
- title: 'dashboard'
- }
- },
- {
- path: 'login',
- component: S4LoginComponent,
- canActivate: [ LoginGuard ],
- data: {
- title: 'login'
- }
- },
- {
- path: 'usuarios',
- loadChildren: './usuario-perfil-permissoes/usuario-perfil-permissoes.module#UsuarioPerfilPermissoesModule'
- },
- {
- path: 'liberacaosistema',
- loadChildren: './liberacao-sistema/liberacao-sistema.module#LiberacaoSistemaModule',
- },
- {
- path: 'profileusuario',
- loadChildren: './profile/profile.module#ProfileModule',
- },
- {
- path: '',
- pathMatch: 'full',
- redirectTo: 'dashboard'
- },
- {
- path: '**',
- component: S4NotFoundComponent,
- data: {
- title: 'Page Not Found'
- }
- }
- ]
- @NgModule({
- imports: [
- RouterModule.forRoot(routes, { useHash: true })
- ],
- exports: [RouterModule]
- })
- export const routes: Routes = [
- {
- path: '',
- component: ProfileComponent,
- canActivate: [SistemaGuard],
- data: {
- title: 'Profile'
- }
- }
- ]
- @NgModule({
- imports: [
- RouterModule.forChild(routes)
- ],
- exports: [RouterModule]
- })
- export class ProfileRoutingModule {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement