What is the best way to use AngularJS to consume REST web services?
505 views
Skip to first unread message
Sam
unread,
Feb 1, 2014, 1:27:18 AM2/1/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
There are a few options for consuming REST web services with AngularJS. A google search turned out $resource, $http and restangular. I am very new to Angularjs. Can someone more experienced which is the developer-friendly way to consume web services for a newbie?
Thank you very much.
Alec Taylor
unread,
Feb 1, 2014, 2:24:21 AM2/1/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Depends what you want to do. You'll likely want to use $http; and if
the REST API is your own, you might want to look into metawidget for
form generation.
Remember to modularise, e.g.: to services.js and controllers.js