In Angular 2 if I have an element like how can I conditionally add an attribute directive like [routerLink]=\"[\'SomeRoute\'
[routerLink]=\"[\'SomeRoute\'
As far as I know, there is no straight way to do this. There are some workarounds... I used something like this:
There is an similar discussion here: link