P
P
PapaDjo2016-04-06 22:21:47
Angular
PapaDjo, 2016-04-06 22:21:47

What is the best way to add a class in Angular to one of the elements?

<div class="l-account-currency">
                            <div class="item active"><a href="#">RUR</a></div>
                            <div class="item"><a href="#">USD</a></div>
                            <div class="item"><a href="#">EUR</a></div>
                        </div>

There is the next piece, how it would be best to add the active class, more precisely, how best to do it through Angular

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2016-04-06
@healqq

The ng-class directive, for example. https://docs.angularjs.org/api/ng/directive/ngClass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question