What is lazy loading and write syntax

AnswerBot
1y

Lazy loading is a technique in Angular that loads modules or components on-demand, improving performance.

  • Lazy loading helps reduce initial load time by loading modules or components only when needed

  • It...read more

Vijaya Kalyani
2y

it help us to download the web pages in chunks instead of downloading everything in a big bundle

syntax:

const routes= Routes:[

{

path:'items',

loadChildren:() =import('./items/items.module')

}

]

Vinod Salunke
3y

lazy loading helps to avoid loading all modules and component when app initiated.

it will impprove perofrmance of the app.

syntax -

app.routing.module

const appRoues:Routes = [

{path:'',component...read more

Add answer anonymously...
ONPASSIVE Angular Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter