I tried code follow:
@Component({
selector: 'test-content',
template: '
<div *ngIf="sv.name.notExist.testUndefined != undefined">
{{sv.name.notExist.testUndefined}}
',
directives: [FORM_DIRECTIVES]
})
The variable sv.name.notExist.testUndefined is undefined, but i check it with *ngIf and the result is error with message: "TypeError: Cannot read property 'testUndefined' of undefined in [sv.name.notExist.testUndefined != undefined in ..."
Please help me check variable undefined with *ngIf.