Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Created March 2, 2019 19:41
Show Gist options
  • Save alexytiger/3d676f25d3097c0cd8ce3a902d5bb5bf to your computer and use it in GitHub Desktop.
Save alexytiger/3d676f25d3097c0cd8ce3a902d5bb5bf to your computer and use it in GitHub Desktop.
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