I am working on angular 5 application, and I have requirement of applying dynamic css in style tag in template. I have tried some solutions but they are not working.
app
You can use [style.customClass]=“methodInComponent()”...
This will apply the class if the method in your component returns true.