【问题标题】:How to set up Meteor-Angular with Twitter Bootstrap?如何使用 Twitter Bootstrap 设置 Meteor-Angular?
【发布时间】:2016-02-02 17:53:02
【问题描述】:

对于如何使用 Twitter Bootstrap 设置我的 Meteor-Angular 项目,我有点不知所措。

到目前为止我有:

  1. 安装的凉亭

    meteor add mquandalle:bower
    
  2. 添加了对bower.json的依赖:

    {
      ...
      "dependencies": {
        "angular-bootstrap": "0.14.3"
      },
      ...
    }
    
  3. 在我的项目中添加了依赖:

    angular.module('myApp', [..., 'ui.bootstrap']);
    
  4. 在 public/main.css 中添加了以下指令(推荐 here):

    .nav, .pagination, .carousel, .panel-title a { cursor: pointer; }
    
  5. 在我的应用程序中从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


    【解决方案1】:

    通过运行添加twbs:bootstrap

     meteor add twbs:bootstrap
    

    似乎已经解决了这个问题。

    如果有人可以确认这是预期的方法,或者我是否以这种方式复制了 Bootstrap 的部分内容,那仍然是受欢迎的。

    【讨论】:

      猜你喜欢
      • 2013-11-20
      • 1970-01-01
      • 2013-08-09
      • 1970-01-01
      • 2015-03-17
      • 1970-01-01
      • 1970-01-01
      • 2017-10-05
      • 1970-01-01
      相关资源
      最近更新 更多