更新时间:2022-03-11 01:05:14
我是 Restangular 的创建者.
I'm the creator of Restangular.
您可以查看这个 CRUD 示例,了解如何在没有您需要执行的所有 URL 配置和 $resource 配置的情况下 PUT/POST/GET 元素.除此之外,您可以使用嵌套资源而无需任何配置:)
You can take a look at this CRUD example to see how you can PUT/POST/GET elements without all that URL configuration and $resource configuration that you need to do. Besides it, you can then use nested resources without any configuration :).
查看这个 plunkr 示例:
Check out this plunkr example:
http://plnkr.co/edit/d6yDka?p=preview
您还可以在此处查看自述文件并查看文档https://github.com/mgonto/restangular
You could also see the README and check the documentation here https://github.com/mgonto/restangular
如果您需要一些不存在的功能,只需创建一个问题即可.我通常会在一周内添加要求的功能,因为我也将这个库用于我所有的 AngularJS 项目:)
If you need some feature that's not there, just create an issue. I usually add features asked within a week, as I also use this library for all my AngularJS projects :)
希望有帮助!