feat(challenge34): default vs onpush perfoamnce serie

This commit is contained in:
thomas
2023-09-07 16:32:27 +02:00
parent 5f84762e41
commit 323c38e334
21 changed files with 670 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-random',
standalone: true,
template: `I do nothing but I'm here: {{ count() }}`,
})
export class RandomComponent {
counter = 0;
count() {
return this.counter++;
}
}