【问题标题】:angular1 bootstrap does not support in angular2angular1 bootstrap 不支持 angular2
【发布时间】:2017-04-29 22:24:18
【问题描述】:

我正在努力将 AngularJS 应用程序转换为 Angular 2 应用程序。在 AngularJS 中使用的 Angular 2 中,Bootstrap 功能不起作用。Angular 2 引导程序有什么替代方法吗?

  <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">OrangeTestDefaultActivity<span class="caret"></span></a>
    <ul class="dropdown-menu">
    <li><a ng-click="handle_url('Screen_1050')">Label</a></li>
    <li><a ng-click="handle_url('Screen_1100')">Become</a></li>
    </ul>
  </li>

【问题讨论】:

标签: angular ng-bootstrap


【解决方案1】:

在您的索引 html 文件中,导入

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

【讨论】:

    猜你喜欢
    • 2017-01-29
    • 1970-01-01
    • 2017-02-03
    • 1970-01-01
    • 2016-05-17
    • 2018-02-06
    • 2016-07-31
    • 1970-01-01
    • 2017-05-09
    相关资源
    最近更新 更多