Thanks for the replies.
Am I correct in assuming that the reason $timeout works is because it puts
the closure at the end of the event loop queue so that all of the angular
binding functions have fired before the $timeout function is executed?
Thanks,
Andrew
On Tuesday, August 4, 2015 at 8:03:06 PM UTC-6, Sander Elias wrote:
>
> Hi Kevin,
>
> The way you put it up is Ok. The $timeout is not beautiful, but gets the
> job done. You need it, because, as you had noticed, angular works kind of
> async. As an alternative, you can take out the {{::text}} out of your
> template, and use the Quill.setContents in your link function to load the
> text into your editor.
>
> 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.