ui-bootstrap 模块 angularjs
ui-bootstrap module angularjs
我想为 angular 从 ui-bootstrap (https://angular-ui.github.io/bootstrap/) 使用分页,但我不确定是否必须添加 ['ui.bootstrap'] 模块在我的 app.js 文件或视图的控制器中。例如,如果我想让我的 main.view.hmtl 有分页,我是否必须将此模块添加到 main.controller.js 中,或者是否足以将它添加到 app.js 中?
你可以很容易地找到它
Installation As soon as you've got all the files downloaded and
included in your page you just need to declare a dependency on the
ui.bootstrap module:
angular.module('myModule', ['ui.bootstrap']);
if you are using UI Bootstrap in the CSP mode, e.g. in an extension, make
sure you link to the ui-bootstrap-csp.css in your HTML manually.
来自 link UI Bootstrap
我想为 angular 从 ui-bootstrap (https://angular-ui.github.io/bootstrap/) 使用分页,但我不确定是否必须添加 ['ui.bootstrap'] 模块在我的 app.js 文件或视图的控制器中。例如,如果我想让我的 main.view.hmtl 有分页,我是否必须将此模块添加到 main.controller.js 中,或者是否足以将它添加到 app.js 中?
你可以很容易地找到它
Installation As soon as you've got all the files downloaded and included in your page you just need to declare a dependency on the ui.bootstrap module:
angular.module('myModule', ['ui.bootstrap']);
if you are using UI Bootstrap in the CSP mode, e.g. in an extension, make sure you link to the ui-bootstrap-csp.css in your HTML manually.
来自 link UI Bootstrap