时间插件

 '/Scripts/Vendor/jquery-ui/jquery-ui.min.js',

    <link href="/Content/common/jquery-ui.min.css" rel="stylesheet" />

HTML部分:
<div class="form-group">
<label class="nowDate col-md-2 control-label" >项目开始日期:</label>
<div class="col-md-4">
<input type="text" class="datepicker form-control col-md-3" placeholder="请输入项目开始时间">
</div>
</div>


js部分:
$scope.openModal = function (id) {
var modalInstance = $uibModal.open({
templateUrl: id,
controller: function ($scope, $uibModalInstance) {
//懒加载,时间插件
$timeout(function () {
angular.element('.datepicker').datepicker();
}, 100);
$scope.ok = function () {
$uibModalInstance.close('closed');
}
$scope.cancel = function () {
$uibModalInstance.dismiss('cancel');
}
},
size: 'lg',

});

}

posted @ 2017-08-21 19:19  蓁蓁  阅读(221)  评论(0编辑  收藏  举报