lement, iAttrs) { ... }
});
</code></pre>
<h3 id="life-cycle-hooks">Life-cycle hooks</h3>
<p>Directive controllers can provide the following methods that are called by Angular at points in the life-cycle of the
directive:</p>
<ul>
<li><code>$onInit()</code> - Called on each controller after all the controllers on an element have been constructed and
had their bindings initialized (and before the pre &amp; post linking functions for the directives on
this element). This is a good place to put initialization 