Is it possible to setup Intellij to display TypeScript errors in Angular template? I have the following dummy app shared on stackblitz. If I create a @Input
with optional object parameters and use it in the template, I've got an error in console, but Intellij is ok with that. No error whatsoever. Note, I have strict mode on:
tsconfig.json
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
data.ts
export interface Data {
id?: number;
title?: string;
}
data.component.ts
@Component({
selector: 'app-data',
templateUrl: './data.component.html',
})
export class DataComponent {
@Input()
public data?: Data;
}
data.component.html
<p>{{data.title}}</p>
terminal output
template open in Intellij
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…