&quot; form.
</div>

<p>Here&#39;s an example directive declared with a Directive Definition Object:</p>
<pre><code class="lang-js">var myModule = angular.module(...);

myModule.directive(&#39;directiveName&#39;, function factory(injectables) {
  var directiveDefinitionObject = {
    <a href="api/ng/service/$compile#-priority-">priority</a>: 0,
    <a href="api/ng/service/$compile#-template-">template</a>: &#39;&lt;div&gt;&lt;/div&gt;&#39;, // or // function(tElement, tAttrs) { ... },
    // or
    // <a hr