how to lazyload angular
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{
path: 'dashboard',
loadChildren: () => import('./modules/dashboard/dashboard.module').then(m => m.DashboardModule)
},
{
path: 'projects',
loadChildren: () => import('./modules/projects/projects.module').then(m => m.ProjectsModule)
},
{ path: '', pathMatch: 'full', redirectTo: 'dashboard' },
];
@NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule]
})
export class AppRoutingModule { }
Also in JavaScript:
- loopback float type
- mongodb distancefield to kms
- create app react js
- vue dynamic create watch
- Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. javascript
- js match true false
- object to json c#
- angular submit form programmatically
- javascript get first 10 characters of string
- react router go rprevious page
- connect mongo to express api
- new create react app
- try catch with for loop in javascript
- type of javascript
- html initialize select
- find highest value in array javascript
- javascript leave page warning
- how to set time out in js
- javascript array flatten
- find a single element in array of objects javascript
- problem solving for loop in javascript
- .includes javascript
- isPrototypeOf js
- javascript get a random number with 6 digits