【问题标题】:Using angular-ui-bootstrap in Angular2在 Angular2 中使用 angular-ui-bootstrap
【发布时间】:2017-10-22 23:51:45
【问题描述】:

我正在使用带有打字稿的 Angular2。使用 npm 解决依赖关系。

我想在我的应用程序中使用模态对话框。为此,我需要在我的应用程序中包含 angular-ui-bootstrap。我需要在我的应用程序中使用 angular-ui-bootstrap 模态对话框。

【问题讨论】:

  • angular-ui-bootstrap 适用于 AngularJS 1.x。但是您可以将 ng-bootstrap 用于 Angular 4.x(相同的想法,来自同一团队):ng-bootstrap.github.io/#/home。 Google 是您的朋友。
  • 你能帮我用 ng-bootstrap (NgbModal) 显示一个对话框
  • 我链接的页面有几个演示。只看代码。您也可以在 plunkre 中打开演示以自己玩。

标签: angular angular-ui-bootstrap angular2-forms angular-ui-bootstrap-tab


【解决方案1】:

angular-ui-bootstrap 是 AngularJS 的,对于新的 Angular 你可以试试这个:

http://valor-software.com/ngx-bootstrap/#/

或者这个:

https://ng-bootstrap.github.io/

这里讨论这两个项目之间的区别:What is the difference between "ng-bootstrap" and "ngx-bootstrap"?

【讨论】:

    猜你喜欢
    • 2016-12-09
    • 1970-01-01
    • 2016-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-15
    • 1970-01-01
    相关资源
    最近更新 更多