title: Does angular.equals() work as an angular expressions?
body: <p>I'm trying to display a div if an object is non-empty. Using <a href="https://stackoverflow.com/a/23553576/1305516">this</a> answer, Im trying to use <code>angular.equals</code> to check emptyness, but its not behaving as expected</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var test = angular.module('test',[]);
  
  test.controller('testCtrl', ['$scope', function($scope){
    $scope.foo={};
    $scope.bar="bam"
  }]);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
  &lt;div ng-app="test"&gt;
    &lt;div ng-controller="testCtrl"&gt;
      &lt;div ng-show="!angular.equals(foo,{})"&gt;{{bar}}&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The expectation here is that the value of <code>bar</code> will only show if <code>foo</code> is not equal to an empty object. However, <code>foo</code> is clearly set to <code>{}</code> and yet <code>bar</code> still shows. </p>