Widget-Wrangler / ww

Widget Wrangler
21 stars 6 forks source link

WW for angular2 #3

Open chahat-mca opened 7 years ago

chahat-mca commented 7 years ago

do you have any plan to implement the WW for angular2

juliemturner commented 7 years ago

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