Put in order · Angular course · Module 6: Signals
Chain of computed signals
Arrange the computed signal definitions so that each one uses the previous one (subtotal → tax → total).
Items to put in order
- const subtotal = computed(() => price() * quantity());
- const total = computed(() => subtotal() + tax());
- const tax = computed(() => subtotal() * taxRate());
You can check the correct answer by solving this task in the CodeWorlds game.