Can't bind to 'ngIf' since it isn't a known property of 'div'
需要在你的module中加上:
import { CommonModule } from '@angular/common';
@NgModule({
imports: [
CommonModule
]
})
Can't bind to 'ngIf' since it isn't a known property of 'div'
需要在你的module中加上:
import { CommonModule } from '@angular/common';
@NgModule({
imports: [
CommonModule
]
})
本文标题:ionic3 自定义组件报错
本文链接:https://www.haomeiwen.com/subject/ftfvzqtx.html
网友评论