Message Boards
Angular Portlets structures
Angular Portlets structures
New Member Post: 1 Join Date: 12/26/20 Recent PostsHi,
Starting an angular portlet in DXP 7.2, I've found on official documentation two ways to do that in Liferay :
- Creating an NPM Angular portlet using blade
- Creating an angular based porltet using the Liferay JS generator
I wonder the differrences between them (why two ways are provided for angular portlets ? ) and when to use each one of these.
Here is my first personal analysis : The projects templates of these two methods are different : The second one is very similar to a "classic" angular project structure,does not include any OSGi service definition, and it seems to be possible to start a standalone angular application independantly (Liferay JS object will not be available in this case). However, the NPM Angular portlet generates some typescript files with an OSGi component (the MVC portlet), project structure is different from an angular one, no way to code with client autoreload...
Thanks for your help and feedbacks
RE: Angular Portlets structures
New Member Posts: 2 Join Date: 4/8/21 Recent PostsI'm not sure, but it seems like blade will no longer be supported and to only use liferay-js
https://issues.liferay.com/browse/LPS-97950