JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="ShowModule">
<div ng-controller="ShowContoller">
<div ng-show="flag" class="myStyle">
welcome to the India
</div>
<button ng-click="show()">Show</button>
<button ng-click="hide()">Hide</button>
</div>
</div>
CSS
.myStyle {
color : red;
}
JavaScript
var app = angular.module("ShowModule",[]);
app.controller("ShowContoller", function($scope){
$scope.flag = false;
$scope.show = function() {
$scope.flag = true;
}
$scope.hide = function() {
$scope.flag = false;
}
});