Does it negatively impact performance to use a function returning a boolean in ngIf directives?

后端 未结 0 1971
长发绾君心
长发绾君心 2020-12-10 13:24

What I mean is this:

// my.component.ts
// ...
public isVisible() {
  myObject.nested.prop > 27 && otherObj.foo === \'lala\'
}

And

相关标签:
回答
  • 消灭零回复
提交回复
热议问题