How to access the services from RESTful API in my angularjs page?

后端 未结 5 2252
星月不相逢
星月不相逢 2020-12-04 05:20

I am very new to angularJS. I am searching for accessing services from RESTful API, but I didn\'t get any idea. How can I do that?

5条回答
  •  借酒劲吻你
    2020-12-04 05:55

    The $http service can be used for general purpose AJAX. If you have a proper RESTful API, you should take a look at ngResource.

    You might also take a look at Restangular, which is a third party library to handle REST APIs easy.

提交回复
热议问题