Created
March 2, 2019 19:41
-
-
Save alexytiger/3d676f25d3097c0cd8ce3a902d5bb5bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import * as guards from './guards'; | |
import { EthPanelComponent } from './components/eth-panel/eth-panel.component'; | |
const routes: Routes = [ | |
{ | |
path: '', | |
component: EthPanelComponent, | |
canActivate: [guards.EthInitGuard], | |
} | |
]; | |
@NgModule({ | |
imports: [RouterModule.forChild(routes)], | |
exports: [RouterModule] | |
}) | |
export class EthRoutingModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment