Last active
March 2, 2019 19:12
-
-
Save alexytiger/79c3bdc0619c50fa6a47c73d485d3604 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 { PokemonComponent } from './components/pokemon/pokemon.component'; | |
const routes: Routes = [ | |
{ | |
path: '', redirectTo: '/pokey-home', pathMatch: 'full', | |
}, | |
{ | |
path: 'pokey-home', | |
component: PokemonComponent, | |
}, | |
{ | |
path: 'eth-portal', | |
loadChildren: './ethereum/eth.module#EthModule', | |
}, | |
{ | |
path: 'pokey-attacks', | |
loadChildren: './attack-change/attack-change.module#AttackChangeModule', | |
}, | |
]; | |
@NgModule({ | |
imports: [RouterModule.forRoot(routes)], | |
exports: [RouterModule] | |
}) | |
export class AppRoutingModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment