You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/src/app/c-lightning/cl.routing.ts

16 lines
619 B
TypeScript

import { Routes, RouterModule } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import { AuthGuard } from '../shared/services/auth.guard';
import { ClRootComponent } from './cl-root.component';
import { HomeComponent } from './home/home.component';
export const clRoutes: Routes = [
{ path: '', redirectTo: '.', pathMatch: 'full', canActivate: [AuthGuard]},
{ path: '.', component: ClRootComponent, canActivate: [AuthGuard] },
{ path: './home', component: HomeComponent, canActivate: [AuthGuard] }
];
export const clRouting: ModuleWithProviders = RouterModule.forChild(clRoutes);