i have the following 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
}
here i dynamically create the component, now need to add the passed css class to it.