Це відео не доступне.
Перепрошуємо.
Lazy loading in angular
Вставка
- Опубліковано 17 сер 2024
- In this video we will discuss lazy loading angular modules
Text version of the video
csharp-video-t...
Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.
/ @aarvikitchen5572
Slides
csharp-video-t...
Angular 6 Tutorial
• Angular 6 tutorial for...
Angular 6 Tutorial Text Articles & Slides
csharp-video-tu...
Angular, JavaScript, jQuery, Dot Net & SQL Playlists
www.youtube.co...
I have always followed your tutorials whenever I have difficulties over the 10 years plus of my software development. I just cannot say thank you enough for all your help. For me, you are the best teacher I have had the opportunity to listen and view his tutorials. Where others will skip a potential problem, you will always stop, simulates the problem just to explain why it occurs in the first, and then resolves it before carrying on with rest of the tutorial. Today, you saved my day again. Many thanks to you sir and God bless!
Knowing a technology stack is one thing but to excellently teach it takes a whole high level of skill. This guy can teach to the moon. He is just so good with his teaching technique. All his courses are excellently taught.
One day I'll fly to India to thank Venkat :-)
Anyways, this man is really good and deserves more likes. One from me ;)
@Girish kumar and how exactly on this cursed lands do you even fucking have that kinda private knowledge, pal?
idk if u re the best programming tutorial maker in the word but im sure u re the best indian
Well done Sir, I passed this video on to my Class. To the rest of the positive comments, I agree 100%.👏
I have tears in my eyes because I heard this God explaining the world to me.
One of the greatest Technical Gurus Sri Venkat sir.
Thanks a lot sir
For Angular 11 this worked for me:
loadChildren: ()=>import('./employee/employee.module').then(mod=>mod.EmployeeModule)
Your videos cover one topic only and don't dive into others. I like that because it allows you to focus on the task at hand. Also, you're great at presenting tutorials. Thank you.
❤
Yes I've been struggling on how routing among modules works and all
These videos sorted all my doubts,
You are ULTIMATE sir, take a bow 🙇♂️
I watched so many tutorials about this and no one helped me, but yours did it! Thanks a lot! :)
same here
This is brilliant! An art of explaining things in a simple, understandable way! Thanks a million!
Best Teacher in the world
Hey man you teach better than the angular documentation
This was so beautifully and simply explained. Well done sir
Awesome explanation of lazy loading , I just started with Angular and would wonder what is the need of module when we can import components directly in other modules. But lazy loading is possible only via modules.
Thank you Ganesh. Very glad you are finding this angular 6 tutorial useful. Good luck with everything.
much awaited concept..thanks alot :)
Such great explanation is so rare...great work 👍
2021 update:
{ path : 'employees', loadChildren: () => import('./employee/employee.module').then(m => m.EmployeeModule)},
Is it possible to implement pathlocationstrategy and hashlocationstrategy in a project at time?
short, simple, easy. thanks
Great vedio .. Concept is very well explained 👍👍
Mr. Kudvenkat, why you forgot us, please start a new series on Angular latest version. waiting to listen your voice again
Very nicely explained! Thanks!
Hey Kudvenkat. Thank you for explaining this simply and well. So the #moduleName is always required? Can't Angular infer it based on the employee.module that's mentioned in the loadChildren?
There are few npm modules which give you a single file but multiple modules packed within it. That could be the reason behind mentioning the module name.
@@ankurarora5093 okay. That makes sense. Thank you
Thanks Sir for clearing every single point in your video.
Dude your examples are really easy to comprehend, do you have any tutorials on the bigger platforms like Udemy or Pluralsight?
just excellent.. that is what i am looking for.
Very good explanation sir. Thank u very much.
when we remove employes path, it doesn't satisfy 1st condition of lazy loading. You can simply use ../employees which moves one step backward while loading url
Explained so well. Thank you.
You did mentioned that for lazy loading the module, all routes should share same route prefix. But you did remove the route prefix in the employee routing module, while lazy loading the employee module, as you don't want 'employees' keyword to be repeated in the URL twice. Then why do you say that the modules should share same route prefix?
great video, learn a lot thanks
I got a doubt, the first point to last load is we have to have same route prefix , but to remove the duplicates in link u remove that path from employee module ??? So that first point is removed ?
Simply awesome, thanks for the video
The best thank you so much
Thanks for the wonderful video :)
Thank you from my heart 🌸♥️
Thank you so much for your classes, sir.
Very clear explanation... Thank you
For anyone wondering why this isn't working for you, check your Angular version. If you are at v9 you need to use this method instead to load your modules. angular.io/guide/lazy-loading-ngmodules
Thanks. I have modified the path as below and it worked .
{
path: 'employees',
loadChildren: () => import('./employee/employee.module').then(m => m.EmployeeModule)
},
Sir please make videos on ssis,ssas,ssrs.
Superb👏
This is very nice. Thanks
You will go places... keep it up.. much appreciated 👍
Excellent tutorials, thanks you soo sir.
Thanks Venkat 🙏🏻
I find this tutorial very useful, thank you for that. I have one question if anyone can answer: is this method still supported in angular 8? Or it is a legacy method already? Thank you!
There is a minor syntax change. Search for Angular 8 lazy loading video.
For Angular 8 use in app-routing.module.ts:
{ path: 'employees', loadChildren:()=>import( './employee/employee.module').then (m=>m.EmployeeModule) },
@@jorgumbricht2537 thanks alot :)
@@jorgumbricht2537 thanks brother
How calling token based authentication from angular to web api>>?
Thank you sir
Perfect, thanks!
Thank you!
thanks
How u r doing string based lazyloading without adding routes in tsconfig
superb
How can we make SEO friendly angular app sir as we can't see meta tags info in source code
Thank you so much
Sir.. Please One video on interceptor.
Can someone answer this -
If we remove the parent path employees, we are breaking the first requirement i.e. all the routes in module to lazy load should have the same prefix.
Then how does it work?
aly M I was wondering that too.
Same. He has done something which he didnt shared.
How can it work when we already removed employees prefix.
He should answer this
They all still have the same prefix, it is just placed in the main routing file instead of the local one.
'' = the same prefix
What is the difference between the ViewChild and ContentChild?
I have a doubt regarding routing in a lazy loading modules
Thanks for sharing the video
Hello Ismail - You are very welcome. Hope you are finding this angular course useful.
Thanks sir. Do you code this tutorial in GitHub?
can you explain what is intercepter ??
Hi ,How to do performance tuning in angular with typescript
sir...do node js tutorial as well if possible...
exactly what I want to know
diff between directive and component ??
please make a video for the forroot and forchild difference
These topics are discussed by one of sir kudvenkat see in this series. And there differences.
Great
Hello sir ji... I need this code.. please help me with this
You can clone or download the source code from my GitHub account using the below link. Hope this helps.
github.com/sirfan24/Angualr-6-Project.git
please help explain below topic of angular ->
ChangedetecorRef
TemplateRef
ViewContainerRef
ElementRef
RXJS operators
Host listener
host binding
CDK Portal
QueryList
DOM Portal host
Portal template
Application ref
AG Grid tutorial
Subject
behavious subjects
Forward Ref
WithLatestFrom
Content Child
Overlay
Overlayref
ChildrenOutlet Context
Navigation Extras
NGRX
FakeAsync
A bit confusing on your explanation on this the topic. It's just a route created for a sub module.
When I removed the employeeModule inside of appModule. I got this error on employeeModule class name that looks like this ---> Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.ts(1219)
sound cool but don't work
core.js:5980 ERROR Error: Uncaught (in promise): Error: Cannot find module './employee/employee.module' Error: Cannot find module './employee/employee.module'
solution:
stackoverflow.com/questions/41396839/exception-uncaught-in-promise-error-cannot-find-module-app-home-home-modul
just excellent.. that is what i am looking for.
Thank you!
Thanks Sir