File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
apps/signal/56-forms-and-signal/src/app Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import { products } from './products';
3333 </form>
3434 <div class="flex justify-between">
3535 <div>SubTotal</div>
36- <div>{{ totalWihoutVat () }} €</div>
36+ <div>{{ totalWithoutVat () }} €</div>
3737 </div>
3838 <div class="flex justify-between">
3939 <div>VAT (21%)</div>
@@ -66,7 +66,7 @@ export default class OrderComponent {
6666 quantity = toSignal ( this . form . controls . quantity . valueChanges , {
6767 initialValue : this . form . getRawValue ( ) . quantity ,
6868 } ) ;
69- totalWihoutVat = computed ( ( ) => Number ( this . price ( ) ) * this . quantity ( ) ) ;
70- vat = computed ( ( ) => this . totalWihoutVat ( ) * 0.21 ) ;
71- total = computed ( ( ) => this . totalWihoutVat ( ) + this . vat ( ) ) ;
69+ totalWithoutVat = computed ( ( ) => Number ( this . price ( ) ) * this . quantity ( ) ) ;
70+ vat = computed ( ( ) => this . totalWithoutVat ( ) * 0.21 ) ;
71+ total = computed ( ( ) => this . totalWithoutVat ( ) + this . vat ( ) ) ;
7272}
You can’t perform that action at this time.
0 commit comments