javascriptangularjstabsangular-ui-bootstrapangular-ui-bootstrap-tab

Choose the template of UI-TAB


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


Solution

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