Error: [$injector:nomod] Module 'ui.bootstrap' is not available! You either misspelled […]

前端 未结 3 2035
小蘑菇
小蘑菇 2021-02-20 13:01

I am having this problem here and I haven\'t gotten any consistent solution so far looking out there. I am running a Java project with Angular on the front-end, and trying to im

3条回答
  •  执念已碎
    2021-02-20 14:03

    Another way to install this via bower and here are the instructions.

    Add the following 2 packages to bower.json in your directory.

    "bootstrap": "*",
    "angular-bootstrap": "*",
    

    Run bower update from your directory

    Add the ui.bootstrap to angular module like below.

    Wire it in the view for the bootsrap to work

    CSS

    
    

    JS

    
    

提交回复
热议问题