I'm trying to change dynamically the visibility of the div with
ng-show="models.show"
the following code, was my first thoughts:
but it's not working.
html
   <div ng-init="models.show=false" ng-show="models.show"> 
        Show!
   </div>
   <button ng-click="hideshow()">Click </button>
javascript/angular
$scope.hideshow= function(){
        $scope.models.show = ($scope.model.show)?false:true;
};
 
     
    