Jakub Szafraniec
tsconfig.json
{
"angularCompilerOptions" : {
"fullTemplateTypeCheck" : false
}
}
<map [city]="user.address.city">
tsconfig.json
{
"angularCompilerOptions" : {
"fullTemplateTypeCheck" : true
}
}
tsconfig.json
{
"angularCompilerOptions" : {
"fullTemplateTypeCheck" : true,
"strictTemplates": true
}
}
W razie problemów
{{$any(person).addresss.street}}
vs
i0.ɵɵelementStart(0, 'h2'); i0.ɵɵtext(1, 'Some text'); i0.ɵɵelementEnd();
<h2>Some text</h2>
i0.ɵɵelementStart(5, 'app-counter', 2); i0.ɵɵlistener('wantMore', function() { return ctx.more(); } ); i0.ɵɵelementEnd();
<app-counter (wantMore)="more()"></app-counter>
i0.ɵɵelementStart(0, 'div', 0); i0.ɵɵtext(1); i0.ɵɵelementEnd();
<div class="value">{{ value }}</div>
i0.ɵɵtextInterpolate(ctx.value);
ɵmarkDirty(this);
this.changeDetectionRef.markForCheck();
import('./lazy-loaded.component').then(
({ LazyLoadedComponent }) => {
ɵrenderComponent(LazyLoadedComponent, {
host: 'app-placeholder',
injector: this.injector
});
}
);
@szafraniec_kuba