2018-05-25 13:49:00 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
import {LoginComponent} from './auth/login/login.component';
|
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {LogoutComponent} from './auth/logout/logout.component';
|
|
|
|
import {HomeComponent} from './home/home.component';
|
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
|
|
|
{path: 'login', component: LoginComponent},
|
|
|
|
{path: 'logout', component: LogoutComponent},
|
|
|
|
{path: '', component: HomeComponent},
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
RouterModule.forRoot(
|
|
|
|
appRoutes,
|
2018-06-13 06:49:46 +00:00
|
|
|
{
|
|
|
|
onSameUrlNavigation: 'reload',
|
|
|
|
// enableTracing: true <-- debugging purposes only
|
|
|
|
}
|
2018-05-25 13:49:00 +00:00
|
|
|
)
|
|
|
|
],
|
|
|
|
exports: [RouterModule],
|
|
|
|
declarations: []
|
|
|
|
})
|
|
|
|
export class AppRoutingModule {
|
|
|
|
}
|