Advanced

Published: 02 March 2021
on channel: Decoded Frontend
48,481
1.3k

In this video #tutorial we will have a look at an advanced angular design pattern - forRoot() / forChild(). We will see what kind of problems it used to solve many years ago and how we can use it today in order to configure Angular modules. Besides this we will have a look at source code of Angular and check how Angular team used this pattern for RouterModule. I hope you will find something interesting from this video and I am looking forward for your feedback. Enjoy watching!

📣 Become a Pro in Angular Material Theming (Advanced Workshop) 📣
https://bit.ly/angular-material-themi...
✅ Use 10%-off coupon code: YOUTUBE_DISCOUNT (Only 2 coupons left)

📣 Blazing fast GraphQL Backend just in 1 Day with Hasura Engine 📣
https://bit.ly/complete-hasura-course
✅ 20%-off coupon code: HASURA-EASY-START

📣 Course for beginners 📣
https://bit.ly/angular-for-beginners

Time Codes:
00:00:00 - Intro;
00:01:18 - Demo project overview;
00:03:55 - Implement a feature which describes the problem;
00:11:14 - Demonstration of multi-service bug for lazy modules;
00:13:17 - Solving the issue using forRoot() pattern;
00:18:02 - Using forChild() pattern to configure lazy modules;
00:28:31 - forRoot()/forChild() pattern in Angular source code;
00:31:28 - Outro.

🔗 Everything about Angular Dependency Injection in this playlist:
   • Dependency Injection in Angular  

🔗 Link to the source code on GitHub:
https://github.com/DMezhenskyi/angula...

#webdevelopment #frontend #angularpatterns


On this page of the site you can watch the video online Advanced with a duration of hours minute second in good quality, which was uploaded by the user Decoded Frontend 02 March 2021, share the link with friends and acquaintances, this video has already been watched 48,481 times on youtube and it was liked by 1.3 thousand viewers. Enjoy your viewing!