Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 669 Bytes
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { GuardService } from './services/guard.service'
import { UserlistComponent } from './userlist/userlist.component'
import { UserloginComponent } from './userlogin/userlogin.component'
const routes: Routes = [
// { path: '', component: UserlistComponent, canActivate: [GuardService] },
{ path: '', component: UserlistComponent},
{ path: 'login', component: UserloginComponent},
//Home sweet home:
{ path: '**', redirectTo: '' }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
You can’t perform that action at this time.