Dears,
we have to compile and load Dynamic Components… works in dev but in production mode (AOT enabled) we get the error “template must be a string”.
APp config:
- “@angular/core”: “~9.1.6”,
- “@ionic/angular”: “^5.0.0”,
@Component({
template: componentTemplate,
selector: templateDef.name,
})
class TemplateComponent extends DynamicUiBaseComponent implements OnInit {
ngOnInit() {
super.ngOnInit();
}
}
....
this.compiler.compileModuleAndAllComponentsSync(DynamicModule);
2 posts - 2 participants