title: Can a custom AngularJs directive be written inside a partial
body: <p>I am new to AngularJs. Want to check if I can have a custom directive inside a partial file? If yes, then how many times the link function gets called when the partial is mapped to the <code>data-ng-view</code> on the main html file?</p>
  
  <p>Updated the code in <a href="http://jsfiddle.net/prashdeep/s8f3r/" rel="nofollow">jsfiddle link</a>. Please forgive me for the mistakes in the jsfiddle since I am new to using it. The code on jsfiddle is to get the essence of what I am trying to get it done.</p>