Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
813 views
in Technique[技术] by (71.8m points)

angular ui - Does AngularUI/Bootstrap support twitter-bootstrap 3?

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>
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...