Dynamic button color

@fredy26 The problem with the floating labels is an issue in beta.4, you can use this workaround until beta.5 is released.

Can you double-check your conditions? You shouldn’t have to import ngClass as directive because it should already be imported if you’re using @Page. You may need to import it if you’re using it in a @Component though.

I couldn’t think of a reason why it’s not working, it’s a core Angular 2 functionality and should work fine.

1 Like

Thank you, it worked. I was “button-” prefix. My bad