diff --git a/apps/signal/56-forms-and-signal/src/app/order.component.ts b/apps/signal/56-forms-and-signal/src/app/order.component.ts index 8af8598..81a20d8 100644 --- a/apps/signal/56-forms-and-signal/src/app/order.component.ts +++ b/apps/signal/56-forms-and-signal/src/app/order.component.ts @@ -33,7 +33,7 @@ import { products } from './products';
SubTotal
-
{{ totalWihoutVat() }} €
+
{{ totalWithoutVat() }} €
VAT (21%)
@@ -66,7 +66,7 @@ export default class OrderComponent { quantity = toSignal(this.form.controls.quantity.valueChanges, { initialValue: this.form.getRawValue().quantity, }); - totalWihoutVat = computed(() => Number(this.price()) * this.quantity()); - vat = computed(() => this.totalWihoutVat() * 0.21); - total = computed(() => this.totalWihoutVat() + this.vat()); + totalWithoutVat = computed(() => Number(this.price()) * this.quantity()); + vat = computed(() => this.totalWithoutVat() * 0.21); + total = computed(() => this.totalWithoutVat() + this.vat()); }