mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 22:33:03 -05:00
feat(challenge33): about performance
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import { CDFlashingDirective } from '@angular-challenges/shared/directives';
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-random',
|
||||
standalone: true,
|
||||
template: `I do nothing but I'm here: {{ count() }}`,
|
||||
template: `<div cd-flash>I do nothing but I'm here</div>`,
|
||||
imports: [CDFlashingDirective],
|
||||
})
|
||||
export class RandomComponent {
|
||||
counter = 0;
|
||||
|
||||
count() {
|
||||
return this.counter++;
|
||||
}
|
||||
}
|
||||
export class RandomComponent {}
|
||||
|
||||
Reference in New Issue
Block a user