4 ms·
In Angular, there is a powerful concept called services. Services are used when you need to share data between controllers, like your example. Angular services
by scardine 13y ago
In Angular, there is a powerful concept called services. Services are used when you need to share data between controllers, like your example. Angular services are guaranteed to be singletons, but instead of passing references around, you use dependence injection instead. Ember is fun and kids like it, but grown ups appreciate the superior design in Angular.
- steveklabnik 13y agoYour 'kids vs grown ups' comment just makes me want to learn Angular that much less. (I will look into exactly what Services are, thank you.)
- btilly 13y agoYour kids vs grown ups comment is ENTIRELY uncalled for. If you can't justify something based on the merits, then you have no business going for ad hominem attacks. If you can make your point without ad hominem attacks, then you should. FYI according to Stack Overflow, Steve is in his late 20s and has been a professional developer for several years. I'm in my mid-40s and have been a developer since the last millennium. Both of us have been on this site longer than you, and have much higher reputation here. Neither of us are kids. Assume that we can understand your actual substantive points, make them, and move on.