Hi!
On Sat, Jan 26, 2013 at 7:42 PM, Saurabh Nanda <
saurab...@gmail.com> wrote:
>
> Another approach could be to pass a (model-based) expression to the
> highlight-on-change directive. The directive could set-up a watch on that
> expression and highlight the entire element upon change. Is that better?
The only problem here is that you would have to repeat your model
expression - once for the highlight watcher and another one to
actually render data.
On top of this it would also double number of watches.
> How does one write a custom version of the interpolate directive? And how
> will that help?
Well, this could be as simple as <span my-interpolate="expr"></span>.
The only problem here is how to select an element to be highlighted...
Assuming that we are always going to highlight a parent is probably
too restrictive...
Not sure I've got a perfect solution here (errr, I'm quite sure I
_don't_ have a perfect solution :-))
Cheers,
Pawel
> --
>
http://www.saurabhnanda.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
angular+u...@googlegroups.com.
>
> To post to this group, send email to
ang...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en-US.