【问题标题】:how to use uib-tabset in angular2 using ng-bootstrap?如何使用 ng-bootstrap 在 angular2 中使用 uib-tabset?
【发布时间】:2016-07-19 01:57:25
【问题描述】:

我在 angular2 项目中工作,想知道有什么方法可以在 angular2 中使用 uib-tabset?

我之前使用了可以使用 ng-bootstrap 的 angularjs。

这样我就可以轻松使用<uib-tabset></uib-tabset>

但我不确定如何在 angular2 中执行此操作? 有输入吗?

【问题讨论】:

标签: angular angular-ui-bootstrap ng-bootstrap


【解决方案1】:

Angular 2 中 angular-ui/bootstrap 的等效项被命名为 ng-bootstrap,您可以在 https://github.com/ng-bootstrap/ng-bootstrap 中查看其源代码。

标签组件是https://github.com/ng-bootstrap/ng-bootstrap 的一部分,并已重命名为ngb-tabset。你可以在这里看到它的实际效果:https://ng-bootstrap.github.io/#/components/tabs

【讨论】:

  • 我们如何将标签内容绑定到单独的 html 文件中,就像我们在 uib-tabs 中所做的那样。找不到有关它的任何详细信息。如果您对此有任何想法,请分享。
猜你喜欢
  • 2016-05-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-04
  • 2016-06-20
相关资源
最近更新 更多