错误:
BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy-loaded module, import `CommonModule` instead.
从Angular 5升级到7后,我得到了这个错误。请帮我解决这个问题
我想在我的angular模板中做一个if-else语句。我是从这个开始的:
<ng-container *ngIf="contributeur.deb; else newDeb" >
[... HERE IS A RESULT 1]
</ng-container>
<ng-template #newDeb>
[... HERE IS A RESULT 2]
</ng-template>
我试着只使用ng-container:
<ng-container *ngIf="contributeur.deb;