title: Adding class to dynamically created component angular
body: <p>i have the following code,</p>
  
  <pre><code>createComponent(message, some_css_class) {
      this.msg.reset();
      const factory = this.resolver.resolveComponentFactory(MessageComponent);
      const componentRef = this.entry.createComponent(factory);
      componentRef.instance.message = message;
      //how to add the passed css class to the this component
  }
  </code></pre>
  
  <p>here i dynamically create the component, now need to add the passed css class to it.</p>