title: AngularJS directive pass parameters through templateUrl function
body: <p>I'm trying to move my template from being in-line to it's own file. Everything was working before I changed from template to templateUrl</p>
  
  <pre><code>Glenn.directive('test', function($compile) {
      return {
          restrict: 'A',
          priority: 1000,
          terminal: true,
          templateUrl: function(tElement, tAttrs) {
              return ('test.html');
          },
          link: function(scope, element, attrs) {     
              attrs.$set('editable-text', 'content.' + attrs.edit + '.data');
              attrs.$set('edit', null);
              $compile(element)(scope);
          }
      }
  });
  </code></pre>
  
  <p><strong>test.html</strong></p>
  
  <pre><code>{{ 'content.' + tAttrs.edit + '.data' }}
  
  &lt;button ng-click="' + tAttrs.edit + '_form'+ '.$show()" ng-hide="' + tAttrs.edit + '_form'+ '.$visible"&gt;edit&lt;/button&gt;
  </code></pre>
  
  <p>Why isn't the <code>tAttrs</code> being passed to my template test.html?</p>