Video details

APP_INITIALIZER Token in Angular (Advanced, 2022)

08.02.2022
English

In real Angular applications, it might happen that you need to perform some logic or pull the data even before Angular will start rendering the very first component. So basically, we want to have something like ngOnInit lifecycle hook but for the whole application. This is where the APP_INITIALIZER token in Angular comes into play! In this video, you will see how to use this token and what you should pay attention to. If you find this video useful you can support my channel by sharing this video on your Social Media!
💥
Angular courses made by Dmytro - https://bit.ly/df-courses 💥 ✂️
Use coupon YOUTUBE_DISCOUNT to get a 10%-off discount ✂️
🕒
Time Codes: 00:00:00 - Intro; 00:00:20 - Why would we need to hook into the app initialization process? 00:02:30 - Basic APP_INITIALIZER usage; 00:09:56 - Feature Description; 00:10:54 - Feature Implementation (fetching config from the server); 00:23:18 - Outro;
🔗 Source code on GitHub (init state on the master branch): https://github.com/DMezhenskyi/angular-app-initializer-example
↙️
Short Frontend Snacks every week here:
Twitter - https://twitter.com/DecodedFrontend Instagram - https://www.instagram.com/decodedfrontend LinkedIn - https://www.linkedin.com/in/dmezhenskyi
#angular #angular14 #angularadvanced #ng