Skip to main content

Posts

Showing posts with the label ng-show and ng-hide in angularjs

ng-show and ng-hide in angularjs

The ng-Show and ng-Hide are use to show or hide the HTML   elements in the angularjs single page apps.   Live plnker demo The angularjs provided the functions which are ng-Show and ng-Hide. < div ng-hide ="true"> if ng-hide is true then show contents of this div. </ div > < div ng-show ="true"> if ng-show is true then show contents of this div. </ div > Example. < !DOCTYPE html > < html > < head >     < script src ="http://code.angularjs.org/1.2.0-rc.2/angular.js"></ script >     < script >          function mainController($scope) {             $scope.display = {                 ngShow: true ,                 ng...