2019-07-16 14:15:40 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import { AuthGuard } from '@farmmaps/common';
|
|
|
|
import { AppContentComponent} from './app-content.component';
|
2019-08-07 07:11:05 +00:00
|
|
|
import { AppSidePanelTestComponent } from './app-side-panel-test.component';
|
2019-07-16 14:15:40 +00:00
|
|
|
|
|
|
|
const routes = [
|
2019-08-07 07:11:05 +00:00
|
|
|
{ path: '', canLoad: [AuthGuard], component: AppContentComponent},
|
|
|
|
{ path: 'sidepanel', canLoad: [AuthGuard], component: AppSidePanelTestComponent}
|
2019-07-16 14:15:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes,
|
|
|
|
{ initialNavigation: false })], // , enableTracing: true
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|