我遇到错误:未捕获(承诺):错误:模板解析错误: 由于它不是'input'的已知属性,因此无法绑定到'owlDateTime'。
Following versions :
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "^6.0.8",
"@angular/compiler-cli": "^6.0.7",
"@angular/language-service": "^6.0.7",
"@types/jasmine": "^2.8.8",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^9.6.22",
"codelyzer": "^4.4.2",
"jasmine-core": "~2.9.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.4",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.3.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "2.7.2"
"ng-pick-datetime": "^6.0.8",
我已经从“ ng-pick-datetime”导入import {OwlDateTimeModule,OwlNativeDateTimeModule};在module.ts中
<div>
<input [owlDateTime]="dt2" placeholder="Date Time" />
<span [owlDateTimeTrigger]="dt2"><i class="fa fa-calendar"></i></span>
<owl-date-time #dt2></owl-date-time></div>