在SharePoint 2010中实施Angular 2的步骤是什么?
答案 0 :(得分:1)
如果要使Angular在SharePoint 2010中正常工作,请修改SharePoint母版页,对于SharePoint 2010(v4.master)中的默认母版页,X-UA兼容或默认模式将设置为IE = 8。要使用Angular,您需要将其更改为IE = 9(您还可以使用IE = Edge获取最新版本的浏览器)
在SharePoint 2010中,我建议您不要使用Angular。我们可以使用一些jQuery插件来满足您的需求。要获取数据,我们可以使用JSOM,REST API(listdata.svc),我们可以使用SPServices
答案 1 :(得分:0)
AnularJs is famous for its two-way data binding. If you want to take this advantage, then you can go for AngularJs. Otherwise, you should use JSOM. Moreover, REST API in SharePoint 2010 is not that much rich. For business logic (Angular Service), you have to depend on JSOM. You have to choose Angular version based on your IE version. Check following references.
Notes on Using AngularJS in SharePoint 2010
Internet Explorer Compatibility of AngularJs
In SharePoint 2013, REST API is much more powerful. Thus, you can consider using it. Some useful links are given below:
CRUD Operation to List Using SharePoint 2013 Rest API
SharePoint REST API and AngularJs for 2013, 2016 and Online