title: angularjs call a function
body: <p>I am using angular js. How can i call a function if the length of the input text id greater than 5. </p>
  
  <pre><code>&lt;input  class="form-control" style="width:230px" ngmodel="Lookupemployer" ng-if={{ }}  /&gt;
  </code></pre>
  
  <p>I want to call  the below function </p>
  
  <pre><code>$scope.get = function()
  {
  
  
  }
  </code></pre>
  
  <p>if the length of the Lookupemployer is greater than 5. </p>
  
  <p>I tried like this </p>
  
  <pre><code>ng-if={{ Lookupemployer.length &gt;5 ? get() : ""}}
  </code></pre>
  
  <p>but did not work. Can anyone help me </p>
  
  <p>Thanks, </p>