Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Is there actually a viable way to develope a Liferay Portlet with Angul
Hello,
I spent my last two days trying to combine Liferay DXP 7.0 and Angular 8 in a practicable way. Therefore I read all documentation I could find such as https://portal.liferay.dev/docs/7-2/appdev/-/knowledge_base/a/developing-an-angular-application and https://portal.liferay.dev/docs/7-0/reference/-/knowledge_base/r/npm-angular-portlet-template and created tons of example projects.
Sadly, no matter what I tried I didn't manage to find a satisfiable solution. My primary pain points are:
- Can't use the Angular CLI
- Have to change whole project structure to integrate the app into the module project which leads to multiple problems (no dev server, merging after every change etc.)
- Incredible slow. Deployment and builds of the module take several minutes.
I really hope that I am missing something but so far I don't see a way. Hopefully someone can point me to the right direction.
Regards,
Bernd
I spent my last two days trying to combine Liferay DXP 7.0 and Angular 8 in a practicable way. Therefore I read all documentation I could find such as https://portal.liferay.dev/docs/7-2/appdev/-/knowledge_base/a/developing-an-angular-application and https://portal.liferay.dev/docs/7-0/reference/-/knowledge_base/r/npm-angular-portlet-template and created tons of example projects.
Sadly, no matter what I tried I didn't manage to find a satisfiable solution. My primary pain points are:
- Can't use the Angular CLI
- Have to change whole project structure to integrate the app into the module project which leads to multiple problems (no dev server, merging after every change etc.)
- Incredible slow. Deployment and builds of the module take several minutes.
I really hope that I am missing something but so far I don't see a way. Hopefully someone can point me to the right direction.
Regards,
Bernd
Hello Bernd,
Just trying to give some hints here: for 7.1+, did you try also the Generator Liferay JS? It has an Angular Generator based on yeoman and also a script to run the app in a local Webpack installation without passing through Liferay deployment.
Hope it helps.
Just trying to give some hints here: for 7.1+, did you try also the Generator Liferay JS? It has an Angular Generator based on yeoman and also a script to run the app in a local Webpack installation without passing through Liferay deployment.
Hope it helps.
Thanks for your input. Unfortunately the generator requires Liferay 7.1+ whereas I only have 7.0 and an upgrade is almost impossible.
Hi Bernd,Can you provide more details about why the upgrade is almost impossible? Maybe the community could help you on that.Thanks.
No technical reason, just the customer's "policy".
Bernd S:
I can't help with policy issues, and also not with specific Angular issues. I can just state that I'm amused about the mismatch between the policies: DXP has 4 years of active support, plus 3 years of limited support. Angular has 6 months of active, plus 12 months of "long" term support. DXP 7.0 was released in mid 2016, while Angular 8 was released ~2 years after, mid 2018 (and will be out of active maintenance exactly one month from now).
No technical reason, just the customer's "policy".
That being said, there's nothing to object to in this policy. Given that the Angular-story gets a lot better with later versions of DXP, you might ease your work by using DXP 7.2. That's not to say that you can't use Angular 8 on DXP 7.0, but rather that the road has been much better paved in later DXP releases (and once you're on the OSGi bandwaggon, updates should be relatively easy). You "just" might need to pave the road for yourself.
Maybe pointing out this mismatch helps you influence the policy in the long run. I don't mean this answer to be sneaky. It was just that reading about those vastly differing timeframes tickled me.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™