What is Lazy Loading in Angular:- Lazy loading is a useful concept in angular. because it is on-demand work. it is a process of loading NgModules only when you navigate to the route. If you have a lot of application with numerous routes, you should consider using this concept it will keep the initial bundle size is smaller and as a result, the application can be loaded much faster. How to Create Lazyloading Module with Routing:- Next, we need to create our feature with the component to navigate to. So we create a new module, execute the following command. ng generate module admin --route admin --module app.module so open your terminal and the command is Run. you can see a new module called admin and the route path to load the home component. In addition, it will add the homepage route inside the Routes array inside this module as the --module options. app-routing.module.ts Here is the result of app-routing.module.ts file. import { NgModule } from &
Gadgets Teach - Provide Tech News, Latest technology news daily, new best tech gadgets reviews which include mobiles, tablets, laptops, video games. Being a tech news site we cover the latest tech news daily online from India and around the world, reviews, updates on technology today from companies like google, apple, samsung and others also new and upcoming mobiles, cameras, laptops, video games - gadgetsteach.com