title: Extending base directive functionality to other directives
body: <p>I just wanted to check is this functionality is possible in angularjs. </p>
  
  <p>Eg: I have base directive with some common functions but in my whole application all the directives need this functions to be implemented so more code duplication occurs, I am expecting same functionality as extends(inheritance) in Java. </p>
  
  <p>Is it possible to achieve this functionality in angularjs.? </p>
  
  <p>As per my requirement i can't archive this function by moving this code to services or factory because it is like all of by directives in the application need to perform this operation on linking, so now all of my directive link function container same functionality with duplicate code. </p>
  
  <p>I am expecting something like extending base directive functionality for all my directives. </p>
  
  <p>[Note] 
  Most of the directives in my application has isolated scope. </p>