So I am fairly new to Angular 2, but coming from a fairly strong background
in Angular 1, which if anything seems to be making my journey even more
difficult.
Anyways I've been digging around for a couple weeks now, doing tutorials,
building little apps to learn how the frameworks handles and continue my
journey of discovery.
So far everything I've done has had data services to handle specific data
gathering. For instance the heroes-service in the Angular 2 Tour of Heroes
tutorial. These services focus on handling data from a specific
API/end-point.
Is this the recommend approach with Angular 2, or would creating a more
generic data service that could handle all data calls be of value?
For instance instead of calling something like:
`specific.service.getSpecific().then...` you could call something like
`data.service.getData("http://myurl.com/api/32", "POST", myBody, {option1:
"option"})`. Or am I thinking too "Angular 1" here?
--
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.