简体   繁体   中英

KendoUI with angular datepicker not working

I have the following imports in my index.html

<script src="content/js/angular.js"></script>

<link  href="content/js/kendo.common-material.min.css" rel="stylesheet" />
<link  href="content/js/kendo.material.min.css" rel="stylesheet" />
<script src="content/js/kendo.ui.core.min.js"></script>
<script src="content/js/kendo.angular.js"></script>

in the module:

var myApp = angular.module("myApp", [
    //angular stuff..,
    "kendo.directives"]);

and then in my html page

<input kendo-date-picker value="10/10/2011" style="width: 100%" />

but no datepicker shows up. its just a plain text field with no button or anything. I modified a dojo snippet and it's working just fine. Dojo Snippet here

Anyone know why it's not working?

如果将HTML部件修改为以下内容,它将显示在dojo中:

<kendo-date-picker value="10/10/2011"></kendo-date-picker>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM