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: HTML 'class" attribute is not working in Angular portlet of Liferay DXP
I have created one liferay angular module in liferay DXP 7. I have followed this document and created it. I am facing some issues with an angular component. When I deployed my liferay-angular portlet in my local system, sometimes the simple class attribute 'class="className" ' is not working properly because js minification converts the ‘class’ attribute to some random characters as shown in the below image.
To fix that issue I applied the class attribute this way "[class.row]=true" and it is working well in my local system.
I have checked with different node and npm versions but every time I face the same issue.
My Current node version is 8.10.0
because js minification converts the ‘class’ attribute to some random characters as shown in the below image.
I can't see random characters.
Please provide full steps to reproduce - e.g. your code, the result (text preferred, no image), expectations etc.
Powered by Liferay™