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:
<
Maybe it will help someone.
In the example below I have the my-button.component.html and I want to apply the *appHasPermission directive to the only if the role attribute is set.
my-button.component.html
*appHasPermission
role
{{ icon }} {{ label }}
That way you don't duplicate the code.