Skip to main content

Signal

en bref, un Signal et une valeur avec un change notification

Create​

Update​

Compute​

exPrice est readOnly, elle est modifiée seulement lorsque un des deux signal est changé.

exPrice = computed(() =>
this.selectedVehicle().price * this.quantity());

Effect​

Stackblitz​

https://stackblitz.com/edit/angular-signals-deborahk?file=src%2Fmain.ts

Video​

Angular Signals: What? Why? and How?

Unlocking the Power of Angular Signals + RxJS: Practical Applications