What's the AngularJS “way” of handling a CRUD resource

前端 未结 5 978
半阙折子戏
半阙折子戏 2021-01-30 03:38

I am interested in moving a lot of my client\'s \"logic\" away from Rails routing to AngularJS. I have slight confusion in one topic and that is linking. Now, I do understand th

5条回答
  •  萌比男神i
    2021-01-30 03:53

    In AngularJS you can definitely use RESTful server side data sources, there is build in service called $resource.

    Alternatively you can also use restangular which has additional features over $resource.

    If you want to have full control you can always use $http service which is low level angular component for interacting with http.

提交回复
热议问题