Angularjs bootstrap dropdown not working

前端 未结 9 2053
时光取名叫无心
时光取名叫无心 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条回答
  •  旧时难觅i
    2021-01-01 11:32

    I found a great resource from here regarding the subject, as I had the same issue. I'll outline what I did below.

    1. Download ui bootstrap
    2. Move zipped file to target directory for app, and unzip
    3. locate the latest edition of the ui bootstrap release, which in my case, is located at "bootstrap-gh-pages/ui-bootstrap-tpls-0.13.0.min.js"
    4. Include the minified js file in your main .html file:
    5. Go back to Angular directives and scroll down to the dropdown section. Copy their javascript into your primary js file and html samples and customize as usual

    That's what did it for me. Hope that helps anyone else with the same issue.

提交回复
热议问题