Hi,
Is looks like $scope.$apply solves the issue:
http://jsfiddle.net/GJJMT/13/
Andras
On Sun, Jun 10, 2012 at 10:47 AM, Joel Holdbrooks
<
cjhold...@gmail.com> wrote:
> I've spent a bit of time trying to figure this one out, I'm hoping someone
> out there can help clue me in to whats missing.
>
> Here's the fiddle:
>
>
http://jsfiddle.net/cjholdbrooks/GJJMT/9/
>
> Basically I have a directive (snippet), a service (tokenService), a
> controller (TokenCtrl), and some code which has been run through CodeRay (a
> syntax highlighter). Whenever someone clicks on one of the "tokens" in the
> code (ie. a span) I would like to see the name of the token displayed. I'm
> trying to figure out why the binding tokenName doesn't update in the view
> when it's changed. If you open the console, it shows everything is working
> fine.
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/angular/-/LLLd9KYbGUYJ.
> To post to this group, send email to
ang...@googlegroups.com.
> To unsubscribe from this group, send email to
>
angular+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/angular?hl=en.