title: How can you limit the value from input using AngularJS?
body: <p>I am looking for ways to limit the value inside the input to 4 and process the 4 digit value unto my controller.</p>
  
  <pre><code> &lt;input type="number" class="form-control input-lg"
   ng-model="search.main" placeholder="enter first 4 digits: 09XX"&gt;
                  {{ search.main | limitTo:4}}
  </code></pre>