@Component({
selector: 'calc',
template: '<p *ngIf="isCalculatable()"></p>'
})
export class CalcComponent {
isCalculatable(){
console.log("yes");
return true;
}
}
When I use this component <calc></calc>
, it writes "yes" to console continiously. I mean isCalculatable()
method firing. So I am using this method so many times in my applicaitons. May this stuation be performance issue?