mirror of
https://github.com/adam-benyekkou/my_portfolio.git
synced 2026-01-15 20:20:09 +00:00
Reworked lazy loading
This commit is contained in:
@@ -2,7 +2,12 @@ import { Routes } from '@angular/router';
|
||||
import { HeroComponent } from './pages/hero/hero.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', component: HeroComponent },
|
||||
{
|
||||
path: '',
|
||||
loadComponent: () =>
|
||||
import('./pages/hero/hero.component').then((c) => c.HeroComponent),
|
||||
},
|
||||
|
||||
{
|
||||
path: 'about',
|
||||
loadComponent: () =>
|
||||
|
||||
Reference in New Issue
Block a user