Angular 12 app initializer tutorial

preview_player
Показать описание
We explore Angular App_Initializer concept with simple factory as well as involving Angular services. How to create angular app initializers with either using Promises or Observables (introduced in Angular 12)
#angular, #angular12
Рекомендации по теме
Комментарии
Автор

Thank you very much for the explanation. I have been struggling around with this for a few days and your video finally helped me resolve the issue,

TheReplayJunkies
Автор

is loading an API prior to app loading the use-case of the APP_INITIALIZER?? And what other scenarios do we go for APP_INITIALIZER?

letvarconst
Автор

How the service data can be used in the components.ts file

never-settle....
Автор

Have you tried this with multiple modules? I’m just not able to get any of your ideas to work on my angular 12 app - my other modules like auth, end up trying to get the config information even before the promise is resolved in the app initializer and the app crashes. I tried promise, observable - nothing worked. Any help would be appreciated:)

ananthakrishnankrishnan
Автор

can we use app_initializer concept for changing api url after build --prod

shashankgonuguntla