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 = {
    priority: 0,
    template: &#39;&lt;div&gt;&lt;/div&gt;&#39;, // or // function(tElement, tAttrs) { ... },
    // or
    // templateUrl: &#39;directive.html&#39;, // or // function(tElement, tAttrs) { ... },
    transclude: false,
    restrict: &#39;A&#39;,
    templateNamespace: &#