title: AngularJS : how to get directive input field model value in controller?
body: <p>I created a custom directive name kid. In that I have one input field with having <code>usermodel</code> object. I need to get its value in my controller. Can we get user model object in my controller. Actually I used to same directive in my view. I need to get both directive input values in my controller .</p>
  
  <p>Here is my <a href="http://plnkr.co/edit/qr45XmP046OCzZPyCeyO?p=preview" rel="nofollow">Plnkr</a></p>
  
  <pre><code> var app =angular.module('Testappp',[]);
      app.controller('testcontroller',function(){
  
      })
      app.directive('kid',function(){
  
          return {
  
              restrict:"E",
              scope:{},
              template:"&lt;input type='text' ng-model='usermodel'/&gt;{{usermodel}}", 
          }
  
      })
  </code></pre>