title: Angular - directive link isnt called
body: <p>I have wrote a directive which has a link function which isnt beeing called, the templae is injected to the DOM</p>
  
  <pre><code>function() {
  'use strict';
  
  // Define the directive on the module.
  // Inject the dependencies. 
  // Point to the directive definition function.
  angular.module('app').directive('nvVideo', ['$window', nvVideo]);
  
  function nvVideo ($window) {
      // Usage:
      // 
      // Creates:
      // 
      var directive = {
          link: function(scope, element, attrs) {
          alert('ggg');
          },
          restrict: 'EA',
          template: '&lt;div id="slot1"&gt;video slot&lt;/div&gt;'
  
  
      };
      return directive;
  
  }
  })();
  </code></pre>