Angular 离子虚拟卷轴不是已知元素
如前所述,如何将其包括在NGM模块中。没有这样的说明。我有一个类似的问题,但是搜索我找到的Angular 离子虚拟卷轴不是已知元素,angular,ionic3,Angular,Ionic3,如前所述,如何将其包括在NGM模块中。没有这样的说明。我有一个类似的问题,但是搜索我找到的ion scroll已经不存在了,可以改用div 上面的css可以实现如下 div[scrollx=true],div[scrolly=true]{ 位置:相对位置; 溢出:隐藏; } div[scrollx=true]{ 溢出-x:自动; } div[scrolly=true]{ 溢出y:自动; } 解决方案来自爱奥尼亚团队,你可以在中看到,我用这种方法解决了这个问题,我想它会对你有所帮助 在html文
ion scroll
已经不存在了,可以改用div
上面的css
可以实现如下
div[scrollx=true],div[scrolly=true]{
位置:相对位置;
溢出:隐藏;
}
div[scrollx=true]{
溢出-x:自动;
}
div[scrolly=true]{
溢出y:自动;
}
解决方案来自爱奥尼亚团队,你可以在中看到,我用这种方法解决了这个问题,我想它会对你有所帮助 在html文件中:
Can't bind to 'items' since it isn't a known property of 'ion-virtual-scroll'.
1. If 'ion-virtual-scroll' is an Angular component and it has 'items' input, then verify that it is part of this module.
2. If 'ion-virtual-scroll' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
}
Can't bind to 'items' since it isn't a known property of 'ion-virtual-scroll'.
1. If 'ion-virtual-scroll' is an Angular component and it has 'items' input, then verify that it is part of this module.
2. If 'ion-virtual-scroll' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
<ion-content padding>
<div scrollY="true" id="scroll-list">
<ion-list *ngFor="let item of list">
<ion-item>
{{ item }}
</ion-item>
</ion-list>
</div>
</ion-content>
#scroll-list{
height: 200px;