title: How to get ng-model value to directive
body: <p>in the following directive I need ng-model value. </p>
  
  <pre><code>  app.directive('getRelatedDocumentDetails',['documentService',function(documentService){
  
  
      return {
              require: 'ngModel',
              restrict: 'AE', //attribute or element
              replace: true,
              link: function(scope,element,attrs,ngModel){
                  element.on('change',function(element,attrs){
              //Here I need ng-model
      })
  
              }
          }
  </code></pre>
  
  <p>In the above code I am not getting ng-model inside the change function.</p>