Defining a simple component as follows:
@Component({
selector: 'loader',
template: `<div *ngIf='false'>
<ng-content></ng-content>
</div>`,
})
export class Loader {}
When using it like this:
<loader>
{{model.something}}
</loader>
I still get template binding errors if model is undefined in the parent, as it tries to resolve the bindings even with the ngIf=false
. Why is this the case?