Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设已经在 angularjs 中构建了一个简单的前端,需要遵循哪些步骤才能在前端包含 angularjs-bootstrap 并使用相应的指令和 css?
添加'ui.bootstrap'到angular.module:
'ui.bootstrap'
angular.module
var myModule = angular.module('myApp', ['ui.bootstrap']);
并确保将 bootstrap javascript + css 导入您的标题
依赖注入是 AngularJs MV * 框架中最好的部分之一。您可以将其注入控制器中