0
我在日期選擇一個問題,不能正常工作和錯誤顯示angularjs日期選擇器錯誤
[$編譯:multidir] http://errors.angularjs.org/1.5.0/ $編譯/ multidir P0 =日期選擇器& P1 = & P2 = DA ... %3D%22keydown(%24event)%22%20date分鐘極限%3D%22%7B%7Bmindate%7D%7D%22%3E。
這裏是我的HTML在哪裏使用datepicker日期指令,我包括了bower文件。
<!--html strat here-->
<div ng-controller="datePickerCtrl">
<datepicker date-min-limit={{mindate}}>
<input ng-model="date" type="text"/>
</datepicker>
</div>
<!--html end here-->
這裏是我的日期選擇器的控制器
angular.module("myApp").controller("datePickerCtrl",function($scope,$http){
alert('hello datepicker controller');
$scope.date = new Date();
$scope.mindate= "date.splice(-1)";
});
這裏是我的索引頁代碼,我給的代碼,直到日期選擇器控制器文件:
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pune project</title>
<link rel="stylesheet" type="text/css" href="/bower_components/angular-ui-grid/ui-grid.css">
<script src="lib/js/angular.min.js"></script>
<script src="lib/js/angular-route.js"></script>
<script src="js/app.js"></script>
<script type="text/javascript" src="js/controller/maincontroller.js"></script>
<script src="bower_components/angularjs-datepicker/src/js/angular-datepicker.js"></script>
<!--angular ui bootsrap @28-1-17 file cdn link here-->
<script data-require="[email protected]" data-semver="0.13.0" src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.13.0.min.js"></script>
<!--ui grid files start here -->
<script src="bower_components/angular-ui-grid/ui-grid.min.js"></script>
<script src="lib/js/angular-touch.js"></script>
<script src="lib/js/angular-animate.js"></script>
<script type="text/javascript" src="js/controller/gridController.js"></script>
<!--ui grid files ends here -->
<script type="text/javascript" src="js/controller/kanpurcontroller.js"></script>
<script type="text/javascript" src="js/service/myFactory.js"></script>
<script type="text/javascript" src="js/controller/punecontroller.js"></script>
<script type="text/javascript" src="js/controller/delhicontroller.js"></script>
<script type="text/javascript" src="js/controller/updateController.js"></script>
<script type="text/javascript" src="js/controller/demopagecontroller.js"></script>
<script type="text/javascript" src="js/controller/modalcontroller.js"></script>
<script type="text/javascript" src="js/controller/divgamecontroller.js"></script>
<script type="text/javascript" src="js/controller/targetController.js"></script>
<script type="text/javascript" src="js/controller/target1Controller.js"></script>
<script type="text/javascript" src="js/controller/hclcontroller.js"></script>
<script type="text/javascript" src="js/controller/datepickercontroller.js"></script>
您正在使用哪個日期選取器? –
這是相同的日期選擇器嗎? https://github.com/720kb/angular-datepicker/blob/master/README.md –
我刪除,但它不工作。 –