On 04/16/2014 10:14 AM, Neil Camara wrote:
That means, I need to include both. UI-router for accessing interface
neatly and $resource/restangular for my REST calls.
not really. you can make a rest call (ie /api/posts) directly within a
controller with $http without using $resource or restangular or
redirecting thru a route. Basically there are several ways you can make
a rest call so read some tutorials on this or look at examples - look at
the tutorial on "votr" - it's pretty simple.
Thanks a lot!
On Wednesday, April 16, 2014 8:21:26 AM UTC-5, Neil Camara wrote:
Hi folks,
I now need to start working on the code that will make a call to
our REST endpoint. This morning, I read
https://github.com/angular-ui/ui-router
<https://github.com/angular-ui/ui-router>. I didn't see any
mention about REST. I continued searching and found two solutions,
using
$resource -
http://fdietz.github.io/recipes-with-angular-js/backend-integration-with-ruby-on-rails/consuming-rest-apis.html
<http://fdietz.github.io/recipes-with-angular-js/backend-integration-with-ruby-on-rails/consuming-rest-apis.html>
Restangular - https://github.com/mgonto/restangular
<https://github.com/mgonto/restangular>
Now, I'm worried that I might bloat my application if ui-router
can also be used for consuming REST api.
I really want to make the application I'm building really neat. I
mean, I would like it to have the best implementation so that when
other devs work on it, it will be easy to work on.
Thanks,
Neil
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
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/d/optout.