i have html like this
<div ng-controller="newcontroller">
<div class="firstdiv" ng-show="show">welcome</div>
<button ng-click="newfunction">click</button>
</div>
js file like this
app.controller('newcontroller',function($scope)
{
$scope.show=false
$scope.newfunction=function()
{
$scope.show=true;
}
});
i have css like this css
.firstdiv { background:green; }
.newclass{background:black;}
Here i am doing that when i click on click button i am showing welcome message. i want to make changes in css dynamically for that div. so i have another css class name called newclass .so when i click on click button i have to apply that new class for making changes in css ....how to do that?