可以将用Angular 2.0编写的SharePoint托管应用程序的代码迁移到SharePoint 2010吗? [英] Can be code of SharePoint hosted app which is written in Angular 2.0, move to SharePoint 2010?

查看:51
本文介绍了可以将用Angular 2.0编写的SharePoint托管应用程序的代码迁移到SharePoint 2010吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在SharePoint 2013中创建了用Angular 2.0编写的SharePoint托管应用程序,现在我想将此应用程序的代码用于SharePoint2010.我们在angularjs 2中有10个SharePoint托管应用程序,因此需要迁移到SharePoint 2010中时间. 因此,正在寻找任何好的解决方案.

I have created SharePoint hosted app which is written in Angular 2.0 in the SharePoint 2013, now I want to use this app's code to SharePoint 2010. We have 10 SharePoint hosted apps in angularjs 2 and need to migrate into SharePoint 2010 in short time. So looking for any good solution.

推荐答案

这取决于您的代码在SharePoint托管应用程序中的确切功能.具体来说,如果它与宿主Web交互并使用REST API或JSOM检索列表项,则由于REST API或JSOM,您需要将代码更改为SPServices到getlistitems. 方法不适用于SharePoint 2010环境.

It depends on what your code does exactly inside SharePoint hosted app. To be specific, if it interacts with host web and retrieves list items using REST API or JSOM, you would need to change the code to SPServices to getlistitems, since REST API or JSOM methods are not available for SharePoint 2010 environment.

要重构代码,我建议您从带有SPServices的AngularJS开始.

To restructure the code, i would suggest you to start with AngularJS with SPServices.

下面的文章会有所帮助

https://gist.github.com/ctcudd/73cff010eae28668f267


这篇关于可以将用Angular 2.0编写的SharePoint托管应用程序的代码迁移到SharePoint 2010吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆