title: How to call custom directive programmatically in angularjs
body: <p>Is there a way to call a custom directive function from a function inside controller.</p>
  
  <pre><code>var m=angular.module('myApp',[]).controller('test',function($scope){
  //here i want to call input directive
  
  });
  
  m.directive('input', function() {});
  </code></pre>