Complete the code to create a RouterLink that navigates to the 'home' path.
<a [1]="'/home'">Home</a>
The routerLink directive is used in Angular templates to create navigation links that Angular Router understands.
Complete the code to bind the RouterLink to a variable named 'path'.
<a [[1]]="path">Go</a>
Using square brackets [] binds the routerLink directive to a variable in the component.
Fix the error in the RouterLink syntax to navigate to 'dashboard'.
<a routerLink=[1]>Dashboard</a>When using RouterLink without binding brackets, the path must be a string literal wrapped in single quotes.
Fill both blanks to create a RouterLink that navigates to 'profile' and applies the 'active' class when active.
<a [1]="'/profile'" [2]="'active'">Profile</a>
routerLink sets the navigation path, and routerLinkActive adds a CSS class when the link is active.
Fill all three blanks to create a RouterLink with a bound path, an active class, and a title attribute.
<a [[1]]="userPath" [2]="'selected'" title=[3]>User</a>
Bind routerLink to the variable, use routerLinkActive for the active class, and set a title attribute with a string.