Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WW for angular2 #3

Open
chahat-mca opened this issue Nov 4, 2016 · 1 comment
Open

WW for angular2 #3

chahat-mca opened this issue Nov 4, 2016 · 1 comment

Comments

@chahat-mca
Copy link

do you have any plan to implement the WW for angular2

@juliemturner
Copy link
Contributor

juliemturner commented Nov 4, 2016

Thanks for reaching out. The short answer is that you can use the ww-appBind option with Angular2 (see http://bit.ly/ww-ng2-1 for an example) - but we have no plans to build in support for Angular2 at this time.

The reasoning is more about what Angular2 supports and less about our desire to support it. Angular2 is a typescript based framework which is great, but they changed their bootstrap model so that it’s declarative, ergo you cannot manipulate where the application binds through code, and then further, you can’t have more than one of the same component on a page. So Angular2 really doesn’t support the widget model. The same issue exists with the new SharePoint Framework; you can write SPFx web parts in Angular 2 but you can only place one copy of any given web part on a page, which is a pretty serious limitation.

This is an area we’re watching closely, and the story may change. It’s our understanding that the SharePoint product group is in talks with Google about this issue in reference to the desire for users to use Angular2 in the new SharePoint Framework. So the story may change, but for now we’re in a wait and see pattern. If you find an approach we’ve missed, please let us know (and there are some folks in the SPFx team who I think would be interested as well!)

-Bob & Julie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants