Angular Config With JSON Files

preview_player
Показать описание

Chapters:
0:00 Intro
0:42 Understand The APP_INITIALIZER Token
2:54 Using JSON Config in Localhost
7:24 Using JSON Config in Deployed Environments
11:00 Error Handling
12:16 Thank you

******************************************************
Let's connect
******************************************************

#angular #learnAngular #angularTutorial #webdevelopment #webdeveloper
Рекомендации по теме
Комментарии
Автор

APP_INITIALIZER is a life saver when companies throw the UAT docker image into production without rebuild (this is ok with backend systems which read env variables but not for Angular). You can have both endpoints and configs (UAT and PROD) in the JSON and select the appropriate, until the dev ops team finds a better solution.

stavrosdroutsas
Автор

Amazing! That is what I was looking for. Thank you so much

subzeroleaf
Автор

Thank you very much. It's helpful for me. Explanation is very clear.appreciated

strategicadvisersforexcell
Автор

Very usefull information. Keep up the good job. Thanks for sharing your knowledge Fanis.

PantelisPapasavvas
Автор

Thanks! Great information and clearly presented

govindaberrio
Автор

Thank you very much! You're the best!

bruno_anjos
Автор

When I use this, the config.json contents are visible in the network tab of devtools in a browser. is there anyway we can overcome this?

saiteja
Автор

Thank you so much 🌈 exactly this is similar to my task

Hanumanthareddy
Автор

Thank you sir for great explanation and knowledge.

ranjanadeore
Автор

thank you very much 😃. it was very useful. keep going

علیکاظمی-عي
Автор

this channel totally different from others❤

unemployedcse
Автор

Thank you for this tutorial, in angular 17 i have the message Cannot find name 'require'. Do you need to install ...., do you have idea to resolve this please

Gyver
Автор

Nice explanation. keep up the good work

AmarKoulavkar
Автор

Thanks!. How to manage multiple environments? Those environments baseUrls are different. Build once apply to multiple environment. Just take build without build configuration. Just "ng build".

velpaarinallu
Автор

Thanks! How do you manage multiple config.json files, for example: config.staging, config.qa, config.prod to make the app build to use and deploy the correct file, according to the configuration used?

gwisso
Автор

1. What is the difference in purpose of config.json and environment file?
2. Also, is it safe to keep some client secrets in environment files? If not, then where should those be kept?

Powerful-Manifestor-