HttpResource Trick💡Conditional API Calls #angular

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

httpResource function in Angular fires HTTP calls immediately, however, this is not always a desired behavior. Sometimes, we should kick off requests only when certain conditions are met, and this video will show you how to do that.

👥 Decoded Frontend Community on Discord

🌱🤝 Support Decoded Frontend:

🔗 Code On GitHub:

💡 For more Angular tips, follow also:
Комментарии
Автор

Cool! What’s about security? Url injection? Thanks!

tomxc
Автор

this work for this case, but there is dnager on how computed are evaluated in this early return. In more complicate scenario you should extract all signals and after that do your logic.

kpodlaski
Автор

Hi please do you have a video thats talking about how to do authentication and authorization with jwt in angular ?best practices and thank you for everything

OmarAbroum
visit shbcf.ru