ui.bootstrap.datepicker is-open 不使用按钮 [英] ui.bootstrap.datepicker is-open not working with a button
问题描述
我想在单击按钮时打开日期选择器.这是我的观点:
<html ng-app="plunker"><头><script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.js"></script><script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.7.0.js"></script><script src="script.js"></script><link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">头部><身体><div ng-controller="演示"><input type="text" datepicker-popup="dd.MM.yyyy" ng-model="dt" is-open="opened" ng-required="true"/><button style="height:34px;"class="btn btn-default" ng-click="open()"><i class="icon-calendar"></i>按钮>