手记

ionic3 组件引入报错

报类似这个错误:

“If 'progress-view' is an Angular component and it has 'statusLineWidth' inpu。。。。。。。”

我发现在其他页面是正常使用这个组件,为什么我这个页面不行呢?

原来,我是用ionicPage(),在app.modules.ts引入的是需要使用组件的页面的pageModule

将它改为正常引入页面,就解决了。

但是后续仍需要优化,肯定还有方法避开这个错误的



作者:给我一个好听的名字吧
链接:https://www.jianshu.com/p/45f60daf8178


0人推荐
随时随地看视频
慕课网APP