Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Angular dynamic components issue in production mode (Aot)

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>