title: How do I pass promises as directive attributes in Angular
body: <p>I'd like to set up a promise and then throw it into a directive (using the databinding '=' attribute type) and do the <code>then</code> magic within the directive, but passing the promise as an attribute seems to result in the promise being resolved as <code>undefined</code>, so the <code>then</code> (and any other promise functionality) is unavailable.</p>