In Angular 2 if I have an element like how can I conditionally add an attribute directive like [routerLink]=\"[\'SomeRoute\'
[routerLink]=\"[\'SomeRoute\'
Or you can simply add a condition to the attribute.
Redirect to '/myScreen' only if myVar is true.