var app = angular.module('plunker', []);

app.controller('MainCtrl', function($scope) {
  $scope.showing = false;
  
  $scope.isShowing = function(){
    console.log("Om nom nom, I'm being digested.");
    return $scope.showing;
  }
  
  $scope.toggleShowing = function() {
    $scope.showing = !$scope.showing;
  }
  
});
<!DOCTYPE html>
<html ng-app="plunker">

  <head>
    <meta charset="utf-8" />
    <title>AngularJS Plunker</title>
    <script>document.write('<base href="' + document.location + '" />');</script>
    <link rel="stylesheet" href="style.css" />
    <script data-require="angular.js@1.5.x" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.10/angular.min.js" data-semver="1.5.10"></script>
    <script src="app.js"></script>
  </head>

  <body ng-controller="MainCtrl">
    
    <p ng-show="isShowing()">Is this shown?</p>
    
    <button ng-click="toggleShowing()">Show/hide</button>
  </body>

</html>
/* Put your css in here */