Created
October 31, 2021 16:13
-
-
Save shadow1349/df47f70a72f32907b3786197d3d94af2 to your computer and use it in GitHub Desktop.
Non-lazy-loaded
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 { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { MainComponent } from './main/main.module'; | |
const routes: Routes = [ | |
{ path: '', redirectTo: '/main', pathMatch: 'full' }, | |
{ | |
path: 'main', | |
component: MainComponent | |
}, | |
]; | |
@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