title: Passing a class to a component in Salesforce
body: <p>I'm using Salesforce. If the text is more than 25 characters, I'm limiting it to 25 characters and passing it to a <code>&lt;p&gt;</code>. My question is how can I pass a class to it here?</p>
  <pre><code>doInit : function(component,event,helper) {
   var address = component.get(&quot;v.studentAddress.Address&quot;);
  
   if(address.length &gt; 25) {
      address = address.substr(0,25);
      component.set(&quot;v.studentAddress.Address&quot;, address);
      //how do I pass a class to this container?
   }
  }
  </code></pre>