I've written a short Plunker illustrating the question I have: 
http://plnkr.co/edit/HldMWXIm29sMQlGB95TV?p=preview

In a nut-shell it is this, what is the best practice approach toward mixing 
2-way-binded properties and synchronous callbacks within directives?

I'm pretty new to Angular. My background for the past several years has 
been with languages or frameworks that implement synchronous binding 
triggers, so I'm still a little thrown off by the async digest sometimes.

The only approach I've thought of is to use bind to nest "shared" 
properties within another object (see 
http://plnkr.co/edit/50rtxPydCB1cTLQq3SQE?p=preview) so that updates are 
really synchronous. This seems a little odd though.

I'd love to hear what others are doing in this case.

-- 
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/groups/opt_out.

Reply via email to