how to implement [owlDateTime] in angular4/angular2+

假如想象 提交于 2019-12-02 06:43:26

Ok so, from the message it looks like there can be two possible problems. 1. You didn't install it correctly, or didn't import the modules. 2. You are using inputs from different version than the version you are using.

So: Did you go through the How to Use section here? The first three steps are important for the fourth step to work.

EDIT based on your edit:

"styles": [
            "scss/style.scss",
            "~ng-pick-datetime/assets/style/picker.min.css"
         ],

should be as it was:

"styles": [
            "scss/style.scss",
         ],

There is a file in your project structure, right near the index.html and main.ts, called style.css or style.scss. You should put the @import "~ng-pick-datetime/assets/style/picker.min.css"; there, near the top of the file.

And, did you do this?

Install with npm: npm install ng-pick-datetime --save

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!