Answer the question
In order to leave comments, you need to log in
How to remove numbers from Angular tabs?
codepen.io/rinatoptimus/pen/doNerO
Based on the Codeschool lesson (2.6 Tabs Inside Out ), I made an example of tabs, but I don’t understand where the numbers on the tabs come from? How to remove them?
Answer the question
In order to leave comments, you need to log in
<section ng-init="tab = 1">
<ul class="nav nav-pills">
<li ng-click="tab = 1" ng-class="{active:tab === 1}"><a href="#">Descr</a></li>
<li ng-click="tab = 2" ng-class="{active:tab === 2}"><a href="#">Specs</a></li>
<li ng-click="tab = 3" ng-class="{active:tab === 3}"><a href="#">Reviews</a></li>
</ul>
{{tab}} <!-- Вот здесь Вы сами и выводите номер таба -->
</section>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question