title: AngularJS ng-if with angular expression
body: <p>View:</p>
  
  <pre><code>&lt;html ng-app="myApp"&gt;
  ....
    &lt;body&gt;
  
      &lt;div ng-controller="myCtrl"&gt;
  
        &lt;p&gt;Current user {{loggedOnUser}}&lt;/p&gt;
  
        &lt;div ng-if="user.name == {{loggedOnUser}}" ng-repeat="user in users"&gt;
          &lt;p&gt;Should display&lt;/p&gt;
        &lt;/div&gt;
  
      &lt;/div&gt;
  
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>angular.module("myApp", [])
    .controller("myCtrl", function($scope){
      $scope.loggedOnUser = "xxx"; // for testing purpose
      $scope.users = [
        {
          name : "xxx",
          age: "25"
        },
        {
          name : "yyy",
          age: "26"
        }
      ];
   });
  </code></pre>
  
  <p>How to use ng-if with angularJS expression or is there any other way to achieve this??
  I want to show that div if my loggedOnUser is equal to user.name</p>
  
  <p>Thanks in advance</p>