Forum Discussion
Gaurav Goyal
Feb 11, 2018Brass Contributor
SharePoint Framework and Angular 4/5 with multiple webparts
Hi, I am trying to create SPFx multiple web parts with Angular 4. I have created 'App' folder under webparts folder and trying to run the project. I am able to run first web part but when adding sec...
Beau Cameron
Nov 27, 2019MVP
Gaurav Goyal This is an issue with how Angular bootstraps it's solutions. In the Angular 2+ world, only 1 "app" can live on a page at a time. Because of this, it doesn't really work when you want to use it in SharePoint.
In order to make it work, you'd need to use Angular Elements. Which has many cons. For more information, check out Andrew Connell's blog on this matter.
https://www.andrewconnell.com/blog/using-angular-elements-in-sharepoint-framework-projects