how to implement [owlDateTime] in angular4/angular2+

后端 未结 1 450
面向向阳花
面向向阳花 2021-01-27 04:15

I am trying to implement owlDateTime in my angular2+ (or rather angular4) code. I have taken its reference from - https://danielykpan.github.io/date-time-picker/

[And i

相关标签:
1条回答
  • 2021-01-27 04:56

    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

    0 讨论(0)
提交回复
热议问题