value. You can see the default values below.
</div>

<p>Therefore the above can be simplified as:</p>
<pre><code class="lang-js">var myModule = angular.module(...);

myModule.directive(&#39;directiveName&#39;, function factory(injectables) {
  var directiveDefinitionObject = {
    link: function postLink(scope, iElement, iAttrs) { ... }
  };
  return directiveDefinitionObject;
  // or
  // return function postLink(scope, iElement, iAttrs) { ... }
});
</code></pre>
<h3 id="directive-definition-object">Direct