选择 UI-TAB 的模板

Choose the template of UI-TAB

本文关键字:UI-TAB 选择      更新时间:2023-09-26

我必须在Web应用程序中使用ui.bootstrap做一些选项卡。我想为每个选项卡选择一个模板,但它不起作用。为什么?这是选项卡.html:

<uib-tabset active="activeForm">
  <uib-tab index="0" heading="One" templateUrl="one.html"></uib-tab>
  <uib-tab index="1" heading="Two" templateUrl="two.html"></uib-tab>
</uib-tabset>

"一.html"和"二.html"都在同一个"选项卡.html目录中。附言它没有给我错误,只是它没有向我显示模板

你应该

使用template-url="one.html" .