Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created May 23, 2022 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NyaGarcia/ab68eb742d81b28fd835631622a72147 to your computer and use it in GitHub Desktop.
Save NyaGarcia/ab68eb742d81b28fd835631622a72147 to your computer and use it in GitHub Desktop.
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
const routes: Routes = [
{
path: '',
loadChildren: () =>
import('./features/pokemon/pokemon.module').then((m) => m.PokemonModule),
},
];
@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