Angular Signals: Understanding how signals in angular work and why angular signals are important ?

Поделиться
HTML-код
  • Опубликовано: 25 июл 2024
  • In this video, we will cover everything about the Angular Signals or signals in angular. how to create a signal, set a new value, and how to use update and mutate. Angular signals is a new feature that has been added in Angular 16. signals in angular is like a package that holds a value inside. If the value changes, the angular signal can let other people know. The value inside can be anything, from simple things to more complicated things.
    To see what value is inside the signal in angular, we use a special function called a getter. This also helps Angular keep track of where the signal is being used.
    #angular #angular16 #angularsignals
    Chapters
    00:00 Introduction to angular signals and project setup
    03:58 How to declare signals in angular
    05:12 Read value from angular signals
    05:33 Set a new value in angular signals using set method
    09:00 Difference between angular set and update method
    09:13 Update method in angular signal
    10:44 asReadOnly in angular signal
    12:53 Mutate in angular signal (Angular signals mutate)
    17:02 Effect in angular signals
    22:37 Computed in angular signals
    26:02 How to convert angular signals to observable
    27:22 How to convert observable to angular signals
    28:44 Angular signals vs Change detection
    Angular signals are going to be the best features in angular. If we compare the angular signals with the change detection then first we need to understand how the change detection works behind the scene in angular. Angular has overridden some methods from DOM to apply the change on the template and this logic is written in zone.js file. But angular signals do not have any dependency on the zone.js file because they don't have any need for the built method of DOM. And because of this in the future versions of angular this zone.js file will be optional.
    Please LIKE, SHARE & SUBSCRIBE. Also, feel free to ask your questions or share feedback in the comment section below.
    Thankyou - Nitish Kaushik
  • НаукаНаука

Комментарии • 3

  • @somenprtapsingh
    @somenprtapsingh Год назад

    Nice one

  • @nouchance
    @nouchance Год назад

    THANK YOU SIR 🎉 great job 👍

  • @dribhsingh2283
    @dribhsingh2283 10 месяцев назад

    why to use signals when all these things can be done with normal variables