【发布时间】:2016-02-02 17:53:02
【问题描述】:
对于如何使用 Twitter Bootstrap 设置我的 Meteor-Angular 项目,我有点不知所措。
到目前为止我有:
-
安装的凉亭
meteor add mquandalle:bower -
添加了对
bower.json的依赖:{ ... "dependencies": { "angular-bootstrap": "0.14.3" }, ... } -
在我的项目中添加了依赖:
angular.module('myApp', [..., 'ui.bootstrap']); -
在 public/main.css 中添加了以下指令(推荐 here):
.nav, .pagination, .carousel, .panel-title a { cursor: pointer; } 在我的应用程序中从UI-Bootstrap project site 设置工具提示示例
当我运行我的应用程序时,我看到包含以下内容:
<script type="text/javascript" src="/packages/bower/angular-bootstrap/ui-bootstrap-tpls.js?bdad9e18333da6ba34b675927f4b74cb53651baf"></script>
但是,似乎没有可用的样式资源(即 CSS 文件和资产),因为我确实看到了预期的内容动态,但没有预期的格式。
我缺少哪些步骤?
还有哪些在 Meteor/Angular 中设置 Bootstrap 的方法?
注意: 我尝试遵循建议in here。
【问题讨论】:
标签: angularjs twitter-bootstrap meteor