Does AngularUI/Bootstrap support twitter-bootstrap 3?

守給你的承諾、 提交于 2019-12-18 03:36:34

问题


Dropdown menu not working in Angular-UI-Bootstrap? Using Bootstrap-3 CSS

The following is the code. The link Click me for a dropdown shows up. But does not toggle on click. What is wrong?

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script>function DropdownCtrl($scope) {
 $scope.items = [
  "The first choice!",
  "And another choice for you.",
  "but wait! A third!"
 ];
}
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script><script type="text/javascript" src="js/ui-bootstrap-tpls-0.5.0.min.js"></script><script type="text/javascript" src="js/dropdownToggle.js"></script>
</head>
<body>                  
<li ng-controller="DropdownCtrl" class="dropdown">
   <a href='#' class="dropdown-toggle"> Click me for a dropdown </a>
    <ul class="dropdown-menu">
          <li ng-repeat="choice in items"><a>{{choice}}</a>
          </li> 
        </ul>
</li>
</body>
</html>

回答1:


Angular-UI/Bootstrap does not support Bootstrap 3 (yet).

You can track issues on 331 and 742




回答2:


As of about 10/1/13, yes it does!

It appears even the pesky Accordion & Collapse issues have been resolved as well.



来源:https://stackoverflow.com/questions/18205329/does-angularui-bootstrap-support-twitter-bootstrap-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!