import { Component } from '@angular/core'; import { computed, signal } from '@angular/core'; @Component({ selector: 'bh-quiz', standalone: true, imports: [], template: `

{{ total() }} allowance units

`, }) export class App { count = signal(1); total = computed(() => this.count() * 2); }