I would like to change the bg colour of div when clicked on that particular div. The div is placed in a slider panel. For example, if I click Home, the slider gets hidden and the home panel opens up. Again when I open the slider, the bg colour should be retained to say that I am in Home panel. I tried using ng-style and ng-class, but it doesnt work.
<div class="menu-grid-con all-icons">
<div class="row">
<div class="col col-50 text-center" ng-click="menu.onHomeButtonClick()">
<img src="images/iconHome.png" class="menu-icons">
<br> <!-- TODO: to change -->
<p translate="MENU_HOME" class="menu-icon-text"></p>
</div>
<div
class="col col-50 text-center"
ng-click="menu.onFlyerButtonClick()"
ng-style={"background-color:blue;} "
>
<img src="images/iconWeeklyFlyer.png" class="menu-weekly-flyer-icons">
<br> <!-- TODO: to change -->
<p translate="MENU_WEEKLY" class="menu-icon-text"></p>
</div>
</div>
</div>