How to integrate AngularUI to AngularJS?

前端 未结 5 2008
梦毁少年i
梦毁少年i 2020-12-02 06:24

Sorry for the silly question, does everyone know how to start using AngularUI? I\'ve downloaded it from Github and read the instruction in README but still don\'t understand

5条回答
  •  感动是毒
    2020-12-02 06:28

    The instructions are in the readme.md file at their official github repository

    Angular UI

    Alternatively, the way you can find out how to integrate is to open the angular-ui js file (example: ui-bootstrap-tpls-0.6.0.js) and in the first line, you will notice the following statement

    angular.module("ui.bootstrap", [...deps...])
    

    Based on the above code, you need to inject 'ui.bootstrap' into your module.

      angular.module('myFancyApp', ['ui.bootstrap','other_deps',.....]);
    

提交回复
热议问题