codelyzer
codelyzer copied to clipboard
template-no-call-expression: not reporting failures in specific cases
Reproduction:
{
"rules": {
"template-no-call-expression": true
}
}
@Component({
template: `
{{ obj?.nested1() }}
{{ obj!.nested1() }}
<!-- Should report two failures, however actually it doesn't report nothing -->
`
})
class TestComponent {}
@rafaelss95 will try to wok on it, if this is still open. Also first time contributor here, so may need help here.
Also doesn't fail when accessing getters in a template.
@Component({
template: '{{ two }}'
})
class TwoComponent {
get two() {
return Math.sin(Math.PI/4)^2
}
}