Choose the template of UI-TAB

1.4k Views Asked by At

I have to do some tabs with ui.bootstrap in a web application. I want to choose a template for each tab, but it doesn't work. Why? This the tabs.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>

Both 'one.html' and 'two.html' are in the same directory of 'tabs.html'. P.S. it doesn't give me a error, simply it doesn't show me the template

1

There are 1 best solutions below

3
On BEST ANSWER

You should be using template-url="one.html".