R
R
rinatoptimus2015-05-31 11:03:53
Angular
rinatoptimus, 2015-05-31 11:03:53

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

1 answer(s)
A
Alexander Tartmin, 2015-05-31
@rinatoptimus

<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 question

Ask a Question

731 491 924 answers to any question