Coding task · Angular course · Module 6: Signals

Practice: computed()

Such a derived signal takes a function and recalculates it automatically whenever any signal read inside it changes. It is like a reactive formula.

Task

Complete the cart component: the total should be a read-only signal that recalculates itself from the quantity and the price.