Hi Sander,

I don't think I'm looking to use the DOM as a source of data. I just do 
need to do a transform that applies *after* the processing of interpolated 
content.

I don't actually care what the values of the expressions are, I just need 
to know that they've been replaced with their values in the rendered DOM, 
so I can safely apply the syntax highlighter to the content.

Jon

On Wednesday, October 15, 2014 12:56:04 PM UTC+1, Sander Elias wrote:
>
> Hi Jon,
>
> Don’t try to use the DOM as a source of data, that’s still old school 
> thinking. If you need some.expression data in your directive, put it in 
> directly,
> like
>
> <div my-directive=s"some.expression">
>    {{ other.stuff }} {{ some.expression.repeated }}
> </div>
>
> you can then read it in you link function like this:
>
>    function (scope,elm,attr) {
>       var thingIneed = attr.myDirective;
>    }
>
> Regards
> Sander
> ​
>

-- 
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