Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Last active October 21, 2021 12:52
Show Gist options
  • Save NyaGarcia/75e0e1dae4d6d25a7e43000b42a7f90b to your computer and use it in GitHub Desktop.
Save NyaGarcia/75e0e1dae4d6d25a7e43000b42a7f90b to your computer and use it in GitHub Desktop.
Adding a base route to the AuthRoutingModule
import { RouterModule, Routes } from '@angular/router';
import { LoginPageComponent } from './pages/login-page/login-page.component';
import { NgModule } from '@angular/core';
const routes: Routes = [{ path: '', component: LoginPageComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class AuthRoutingModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment