Hi Gerard,

There is no single 'best' pattern to 'rule them all' Gold bullets don't 
exists in programming.
An event bus will work quite well for one app, but might be a nightmare in 
another. It has it's own virtues, but is certainly not without perks!
The best thing you can do within an application, is be consistent. 
In your case, that probably means, keep using onChange to hook up your 
components. If you are afraid it won't scale, try to find reasons why that 
would be the case in your app. Talk about it with your peers, and create a 
guide on how to develop future components, and explain in that document why 
you took your decisions this way. Pick a couple of 'ways' to hook up your 
stuff, and stick with it. with a couple, I mean like 2 or 3. Only add a 
'way' if it is impossible to solve a issue with what you are currently 
doing.

Let me ask you, why do you feel the onChange hookup won't scale for you?

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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to