<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>HTML 'class" attribute is not working in Angular portlet of Liferay DXP 7.0</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121245253" />
  <subtitle>HTML 'class" attribute is not working in Angular portlet of Liferay DXP 7.0</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121245253</id>
  <updated>2026-06-14T23:39:18Z</updated>
  <dc:date>2026-06-14T23:39:18Z</dc:date>
  <entry>
    <title>RE: HTML 'class" attribute is not working in Angular portlet of Liferay DXP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121249963" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121249963</id>
    <updated>2021-11-15T14:07:18Z</updated>
    <published>2021-11-15T14:07:17Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;p&gt;because js minification converts the ‘class’ attribute to some
    random characters as shown in the below image.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I can't see random characters.&lt;/p&gt;
&lt;p&gt;Please provide full steps to reproduce - e.g. your code, the result
  (text preferred, no image), expectations etc.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-11-15T14:07:17Z</dc:date>
  </entry>
  <entry>
    <title>HTML 'class" attribute is not working in Angular portlet of Liferay DXP 7.0</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121245252" />
    <author>
      <name>Chirag Lakhamani</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121245252</id>
    <updated>2021-11-15T14:05:55Z</updated>
    <published>2021-11-15T10:16:28Z</published>
    <summary type="html">&lt;p&gt;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=&amp;quot;className&amp;quot; ' is not working properly because js
  minification converts the ‘class’ attribute to some random characters
  as shown in the below image.&lt;/p&gt;
&lt;p&gt;To fix that issue I applied the class attribute this way
  &amp;quot;[class.row]=true&amp;quot; and it is working well in my local system.&lt;/p&gt;
&lt;p&gt;I have checked with different node and npm versions but every time I
  face the same issue.&lt;/p&gt;
&lt;p&gt;My Current node version is 8.10.0&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://i.stack.imgur.com/07KxZ.png"&gt;&lt;img
      alt="enter image description here" src="https://i.stack.imgur.com/07KxZ.png" /&gt;&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Chirag Lakhamani</dc:creator>
    <dc:date>2021-11-15T10:16:28Z</dc:date>
  </entry>
</feed>
