/p>
</li>
</ul>
<h4 id="-link-"><code>link</code></h4>
<p>This property is used only if the <code>compile</code> property is not defined.</p>
<pre><code class="lang-js">function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }
</code></pre>
<p>The link function is responsible for registering DOM listeners as well as updating the DOM. It is
executed after the template has been cloned. This is where most of the directive logic will be
put.</p>
<ul>
<li><p><code>scope</code> - <a href="api/ng/ty