Should Angular services follow the service DDD design pattern 
<http://gorodinski.com/blog/2012/04/14/services-in-domain-driven-design-ddd/> 
or 
what's the logic here?

Case in point, the HeroService in the current Angular 2 tutorial 
<https://angular.io/docs/ts/latest/tutorial/toh-pt4.html#!#creating-a-hero-service>:
 
I would call the "HeroService" a "HeroRepository" any day of the week - 
it's an inmemory representation of our domain entities which we use for 
queries <http://martinfowler.com/eaaCatalog/repository.html>, using HTTP to 
connect to an underlying data store.

I'm a C# developer migrating to Angular, and it drives me nuts that I'm 
losing so much of my "pattern vocabulary" when working with Angular.

I'd really appreciate some insight into why I'd want half of my application 
code base to be suffixed with "service" instead of something meaningful.

Regards

Uli Weltersbach

-- 
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