title: How do I evaluate attribute values in a directive?
body: <p>Is there a good way to have AngularJS directives evaluate an attribute passed in as a parameter?</p>
  
  <p>Here's a <a href="http://jsfiddle.net/3gytU/2/">simplified example</a> to show my problem (I recognize you could implement this behavior without a directive):</p>
  
  <pre><code>link: function postLink(scope, element, attrs) {    
        debugger; // scope.$parent already knows the value of teacher here
        scope.sendEmail = function(){
            alert(attrs.recipient);
            //window.open("mailto:" + attrs.recipient);
        }
      }
  </code></pre>
  
  <p>I would like the directive to use the value of <code>teacher.email</code> (note that the link function has the correct value for <code>scope.$parent.teacher</code>) instead of the string <code>teacher.email</code>.</p>