y different options for a directive.</p>
<p>The difference resides in the return value of the factory function.
You can either return a <a href="api/ng/service/$compile#directive-definition-object">Directive Definition Object (see below)</a>
that defines the directive properties, or just the <code>postLink</code> function (all other properties will have
the default values).</p>
<div class="alert alert-success">
<strong>Best Practice:</strong> It&#39;s recommended to use the &quot;directive definition object