I am trying to dynamically show and hide a button using the ng-show directive.
Below is the HTML code I have written:
<button class="btn btn-info" ng-show="editBtn">Save Edit
<span class="glyphicon glyphicon-ok"></span>
</button>
And here is the controllerScript code for my AngularJS app:
myApp = angular.module("myApp", []);
myApp.controller ("epmloyeeCtrl", ["$scope", function($scope){
$scope.editBtn = false;
}]);