Angularjs bootstrap dropdown not working

前端 未结 9 2112
时光取名叫无心
时光取名叫无心 2021-01-01 10:39

Am bit new to angularjs and bootstrap.

Am trying to add a simple dropdown. But it is not working.

Tried out the suggestion @ Bootstrap 3 simple dropdown not

9条回答
  •  长情又很酷
    2021-01-01 11:10

    First make sure you included ui.bootstrap module in your app

    var app = angular.module('App', ['other inclusions','ui.bootstrap']);
    

    Then if the problem still persists don't use dropdown-toggle and dropdown as directives. Instead use as class. i.e. class = 'dropdown-toggle' etc.

    For Example :

    
    

    Refer this issue. https://github.com/angular-ui/bootstrap/issues/2156

提交回复
热议问题