On Friday, November 21, 2014 at 1:31 PM, Eric Eslinger wrote:
> Hmm, I wonder what would happen if I did that- Angular already actually 
> redefines A. Would my change override theirs? Hard to say.

I think the answer is: it is OK to define more than one directive on the same 
element/etc.

> Anyway I just ended up creating a directive that wrapped a <div ng-bind-html> 
> in the template, put a watch on the bound-html value, and used 
> element.find('a').attr('target', '_blank'). Seems to work. Maybe this is one 
> of those times when using jqLite isn't against the rules.
> 

This is also a nicely expedient answer.

-- 
Kyle Cordes
http://kylecordes.com



-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to