javascript Angular JS + SharePoint 列表 + Rest API
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21380062/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Angular JS + SharePoint List + Rest API
提问by Girish
Below is the simple task I want to do :
以下是我想做的简单任务:
1) Create a simple form – employee details form and use SharePoint list to save the data.
2) You have to complete CRUD operations for that employee details by using angularjs and rest services. If you will use SharePoint list then you don't need to write service code separately, REST API is already available for this.
1) 创建一个简单的表单——员工详细信息表单并使用 SharePoint 列表来保存数据。
2)您必须使用angularjs和rest服务完成该员工详细信息的CRUD操作。如果您将使用 SharePoint 列表,那么您不需要单独编写服务代码,REST API 已经可用于此。
So what I need to do is to communicate SharePoint
list with AngularJs
and REST
. I am new to AngularJs
, Sharepoint
and REST
. Tried to search on google but could not find same.
所以我需要做的是将SharePoint
list 与AngularJs
和进行通信REST
。我是新手AngularJs
,Sharepoint
并且REST
。试图在谷歌上搜索但找不到相同的。
回答by Alex Choroshin
I found a nice and easy articleby Saikiran Sheshagiri, explaining how to get List Data in SharePoint 2013 using Rest api and AngularJS .
我找到了Saikiran Sheshagiri 的一篇很好且简单的文章,解释了如何使用 Rest api 和 AngularJS 在 SharePoint 2013 中获取列表数据。
Found another great articleby Jeremy Thake, explaining how to use REST API to Host Web with AngularJS Services.
找到了 Jeremy Thake 的另一篇很棒的文章,解释了如何使用 REST API 来通过 AngularJS 服务托管 Web。
回答by cubitouch
Try to take the problem separatly in that order :
尝试按顺序分别处理问题:
Create an interface with AngularJS, which will do what you need for the CRUD UI part.
Create a SharePoint list as suggested, in order to save you entries.
Plug the AngularJS routes to the SharePoint REST webservice in order to junction the UI with the data storage.
使用 AngularJS 创建一个界面,它将完成您对 CRUD UI 部分的需求。
按照建议创建一个 SharePoint 列表,以保存您的条目。
将 AngularJS 路由插入 SharePoint REST Web 服务,以便将 UI 与数据存储连接起来。
See https://www.twilio.com/blog/2013/12/votr-part-5-angularjs-crud-restful-apis.htmlfor first and last point, and http://msdn.microsoft.com/en-us/magazine/dn198245.aspxfor the second.
有关第一点和最后一点,请参阅https://www.twilio.com/blog/2013/12/votr-part-5-angularjs-crud-restful-apis.html和http://msdn.microsoft.com/en -us/magazine/dn198245.aspx为第二个。