Resource Signal inside Angular Services #angular19 #reactivity
*Summary* This video demonstrates how to utilise Angular's new `Resource` feature within services, showcasing a practical example of fetching and displaying data from an API. The speaker addresses a viewer question regarding the feasibility of using resources within services, explaining the necessary steps and demonstrating the process through a step-by-step implementation within Visual Studio Code. The example involves fetching data based on an ID, handling loading states, and updating the UI accordingly. The video highlights the use of the `inject` method (available in Angular 14+) for dependency injection of services within components. *Highlights* - π *Resource Usage in Services:* The core focus is on effectively integrating Angular's `Resource` functionality within services to manage API calls. - π‘ *Dependency Management:* The video stresses the importance of including all dependent signals and resources within the service to ensure proper functionality. - π *`inject` Method:* The example uses Angular's `inject` method for dependency injection, a feature introduced in Angular 14+. - π *API Call Management:* The practical example demonstrates managing API calls, including handling loading indicators and refreshing data. - π» *Visual Studio Code Demo:* A clear, step-by-step demonstration within Visual Studio Code is provided, making the process easily understandable. Github Link: https://github.com/saikorthivada/angular-tutorials/tree/resource-signals Telegram Link https://t.me/techshareskk Instagram https://www.instagram.com/tech.share.skk Playlist links Angular Project https://www.youtube.com/playlist?list=PLmY2oBouT85bavS9A9qB_RYmrBRQG6Jbx Angular Tutorials Zero to Hero https://www.youtube.com/playlist?list=PLmY2oBouT85bSbFOm0qfDDPiL1gryCjmB Angular Unit Testing https://www.youtube.com/playlist?list=PLmY2oBouT85ZY5PIFp9BtOzjiwRRrs0Zy For Angular Reactive forms https://youtube.com/playlist?list=PLmY2oBouT85Zv7MfGUdLdyKO4CietR_1X For Javascript Objects Series https://youtube.com/playlist?list=PLmY2oBouT85a6pqYOxETLm4FqIiTFFczm For Concepts of JavaScript https://youtube.com/playlist?list=PLmY2oBouT85Y8TOw2qCGZ4S1wcgvgUKll For Projects and POC https://youtube.com/playlist?list=PLmY2oBouT85Z5be8KRyIfca7s7yXRlDC4 #angular19 #angular #updates #techshareskk #angulardeveloper #angular
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.