Auth Guard initial implementation
Commented out until routing is simplified
This commit is contained in:
parent
1bd586b3ae
commit
c7810de2b6
5 changed files with 30 additions and 11 deletions
|
@ -13,8 +13,9 @@ import { SIDEBAR_TOGGLE_DIRECTIVES } from './shared/sidebar.directive';
|
|||
import { AsideToggleDirective } from './shared/aside.directive';
|
||||
import { BreadcrumbsComponent } from './shared/breadcrumb.component';
|
||||
|
||||
// Routing Module
|
||||
// Routing & Guard Module
|
||||
import { AppRoutingModule } from './app.routing';
|
||||
import { AuthGuard } from './_guards/index';
|
||||
|
||||
// Layouts
|
||||
import { FullLayoutComponent } from './layouts/full-layout.component';
|
||||
|
@ -38,7 +39,9 @@ import { SimpleLayoutComponent } from './layouts/simple-layout.component';
|
|||
SIDEBAR_TOGGLE_DIRECTIVES,
|
||||
AsideToggleDirective,
|
||||
],
|
||||
providers: [{
|
||||
providers: [
|
||||
AuthGuard,
|
||||
{
|
||||
provide: LocationStrategy,
|
||||
useClass: HashLocationStrategy
|
||||
}],
|
||||
|
|
Reference in a new issue