title: Directives calling services directly
body: <p>Is it a good practice to call services directly from a Angular JS Directive?</p>
  
  <p>Here is an example: directive to take name as input and calls a service(connects to db) to get the HTML content and render it.</p>
  
  
  
  <p>a service call is made inside the linkFn to get the HTML content  </p>
  
  <p>or </p>
  
  
  
  <p>return {
     restrict:'EA',
     scope:{
       name:"=",
       getPartial : "&amp;"
     },
     link:linkFn
    }</p>
  
  <p>here getHTMLContent is implemented in the controller and calls the same service.</p>