HTML:
<!-- Order -->
<li ui-sref-active="active">
<a ui-sref="order" class="main_link">
<i class="fa fa-shopping-cart"></i>Order
</a>
<a ui-sref="order/create"><span class="plus">+</span></a>
<div class="clearfix"></div>
</li>
I want to add class="active"
on <li>
.
Whenever click on <a ui-sref="order/create"><span class="plus">+</span></a>
this, that time class="active"
add on <li>
.
BUT
click on
<a ui-sref="order" class="main_link"><i class="fa fa-shopping-cart"></i>Order</a>
that time class="active"
not add on <li>
.
Your help would be appreciated.
More Detail Check Here