Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Last active March 2, 2019 19:12
Show Gist options
  • Save alexytiger/79c3bdc0619c50fa6a47c73d485d3604 to your computer and use it in GitHub Desktop.
Save alexytiger/79c3bdc0619c50fa6a47c73d485d3604 to your computer and use it in GitHub Desktop.
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