It seem to be a problem of the '@angular/common' module and the ivy compiler? Any ideas? Deleting node_modules and updating angular does not have any success.
<!-- Define our template -->
<ng-template #myTemplate> World! </ng-template>
Hello
<!-- Render the template in this outlet -->
<ng-container [ngTemplateOutlet]="myTemplate"></ng-container>
If I try ...*ngTemplateOutlet=... then I get this Error at runtime: NG0303: Can't bind to 'ngTemplateOutlet' since it isn't a known property of 'ng-container'. node_modules/@angular/core/ivy_ngcc/fesm2015/core.js:10073
Angular Version 11
It was a confusion of app.module.ts (that in fact imported
BrowserModule
) and app-routing.module.ts in the DevExtreme Template. After I addBrowserModule
inapp-routing.module.ts
to@NgModule({ imports:
it works as expected. @Ilia Komarov: Thanks! You have been also right with your solution!