What is the difference between [routerLink] and routerLink ? How should you use each one?
Assume that you have
const appRoutes: Routes = [
{path: 'recipes', component: RecipesComponent }
];
Recipes
It means that clicking Recipes hyperlink will jump to http://localhost:4200/recipes
Assume that the parameter is 1
It means that passing dynamic parameter, 1 to the link, then you navigate to http://localhost:4200/recipes/1