title: ng-if doesn't work properly on a function
body: <p>I want to show a specific div only while a function return true value... why isn't it working here ? </p>
  
  <pre><code>var app = angular.module('. . .');
  
  app.controller('LoaderController', function($scope, $http,communication) {
  
    var loader = this;
    var isLoading = false;
  
    $scope.Loading = false;
  
    this.getIsLoading = function(){
      return true; // return communication.getIsLoading();
    }
  
  
  });
  </code></pre>
  
  <p>This is the div</p>
  
  <pre><code>&lt;div id="loader" ng-controller="LoaderController as loaderCtrl" ng-if="loaderCtrl.getIsLoading()"&gt;&lt;/div&gt;
  </code></pre>