If we need to set some configurations without which the app cannot work properly. Please refer the below link for more details. angular.io/api/core/APP_INITIALIZER
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:)
@@JSFrameworks basically while deployment we build our files placing inside environment.prod.ts can we make webapi url configurable if I have more servers
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,
Glad to help
Nice explanation brother 🎉
Crystal clear explanation
How the service data can be used in the components.ts file
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?
If we need to set some configurations without which the app cannot work properly. Please refer the below link for more details.
angular.io/api/core/APP_INITIALIZER
Nicely explained. Thank You!
Great. Thanks. 👏👏👏👏👏👏
superb
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:)
If you could share the code, i could take a look.
@@JSFrameworks How do you want me to share code?
@Ananthakrishnan Krishnan github? Email anuroopjoy@gmail.com
🥰🥰great bro
can we use app_initializer concept for changing api url after build --prod
App initializer can be used for executing some logic during the initialization of app at runtime.
@@JSFrameworks basically while deployment we build our files placing inside environment.prod.ts can we make webapi url configurable if I have more servers
@@shashankgonuguntla2618 I don't think app initializer is the correct place to do so
@@JSFrameworks can you suggest proper way to implement this in angular
Very helpful thanks
Very useful info.
Thanks 🙏
Very helpful, thank you.
Thanks 🙏
A big thanks!!!!
First comment..
👍