I am using Material 2 to add md-raised-button. I want to apply this directive only if certain condition becomes true.
md-raised-button
For example:
<
As others have also stated, directives can't be dynamically applied.
directives
However, if you just want to toggle md-button's style from flat to raised, then this
md-button
Toggle Raised Button
would do the trick. Plunker