Last active
October 21, 2021 12:52
-
-
Save NyaGarcia/75e0e1dae4d6d25a7e43000b42a7f90b to your computer and use it in GitHub Desktop.
Adding a base route to the AuthRoutingModule
This file contains hidden or 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 { 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