Difference between [routerLink] and routerLink
What is the difference between [routerLink] and routerLink ? How should you use each one? Milad You'll see this in all the directives: When you use brackets, it means you're passing a bindable property (a variable). <a [routerLink]="routerLinkVariable"></a> So this variable (routerLinkVariable) could be defined inside your class and it should have a value like below: export class myComponent { public routerLinkVariable = "/home"; // the value of the variable is string! But with variables, you have the opportunity to make it dynamic right? export class myComponent { public routerLinkVariable =