Links in Aurelia
Creating links in Aurelia is really easy:
|
|
This generates something like: http://localhost:8080/dashboard
By using route-href we can easily map the url to a router path in the router configuration.
But what if we want to pass some extra parameters? To generate something like: http://localhost:8080/dashboard?id=49
|
|
And if we want to get something like: http://localhost:8080/dashboard/49
|
|
How about doing redirections? Also easy:
|
|
or
|
|
Simple and easy :)