Within my code, there are two list options available: Monthly and Quarterly. I currently have a class called "active" that is used to highlight elements.
I am seeking a solution in Angular that will apply the class "active" to one of the options when it is clicked or selected. At the moment, the class=active is only applied manually to Monthly. I would like to automate this process through Angular.
<div class="list">
<p class="subheader secondary">Select Preferred View</p>
<ul class="tabs">
<li><a href="#monthly" ng-click="type='month'" data-ajax="false" **class=active**>Monthly</a></li>
<li><a href="#quarterly" ng-click="type='quarter'" data-ajax="false">Quarterly</a></li>
</ul>
</div>