different options for a directive.</p>
<p>The difference resides in the return value of the factory function.
You can either return a &quot;Directive Definition Object&quot; (see below) 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&quot; form.
</div>

<p>Here&#39;s an example directive 