Answer by User2 for apply css based on condition angularjs
Please check working example here: ExampleJSvar app = angular.module('plunker', []);app.controller('MainCtrl', function($scope) { $scope.showTab = 1; //If you want to select default...
View ArticleAnswer by AranS for apply css based on condition angularjs
I'm not sure how your ng-show fits here but use ng-class to toggle css: <a ng-class = "{'some-class': showTab1}" ng-click="showTab1 = true; showTab2 = false">#Tab1</a>
View Articleapply css based on condition angularjs
I'm alternating between two windows in angularjs using ng-click and ng-show :<div ng-init="showTab2 = false"><a ng-click="showTab2 = true; showTab1 = false ">#Tab1...
View Article