title: AngularJS directive scope not resolved ("attr name is not defined" error)
body: <p>Directive code</p>
  
  <pre><code>mymodule.directive('eicon', function(){
      return {
          restrict: 'E',
          scope: {
              attr: '='
          },
          template: "test " + attr.name
      }
  });
  </code></pre>
  
  <p>Html</p>
  
  <pre><code>&lt;tr ng-repeat="e in entities"&gt;
      &lt;td&gt;&lt;eicon attr="e"&gt;&lt;/eicon&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I've this error: <code>ReferenceError: attr is not defined</code>. What's wrong?</p>