title: How to get notified when a custom directive has been initialized in the controller
body: <p>Let us say I have a custom directive like this applied on a div:</p>
  
  <pre><code>&lt;div my-custom-component&gt;&lt;/div&gt;
  </code></pre>
  
  <p>In my controller, I want to define a function like this:</p>
  
  <pre><code>$scope.onAfterMyCustomComponentInit(){
           // Do something only once after the component is inited.
  }
  </code></pre>
  
  <p>How do I get the above method in my controller called?</p>