optimise routes and guards (#676)

* reduce duplicate settings

* simplify guards/resolvers

* fetch data after 401

* unit tests

* extra unit tests

* unit tests for auth guard

* trashcan tests
This commit is contained in:
Denys Vuika
2018-10-01 07:47:40 +01:00
committed by GitHub
parent 080f79e040
commit 22800c0e5a
17 changed files with 206 additions and 173 deletions

View File

@@ -38,7 +38,11 @@ import { AppToolbarModule } from '../toolbar/toolbar.module';
const routes: Routes = [
{
path: '',
component: PreviewComponent
component: PreviewComponent,
data: {
title: 'APP.PREVIEW.TITLE',
navigateMultiple: true
}
}
];