I want to create a route link dynamically.
I have the html loaded with the page however, i need to use an id in the URL which is available much later.
HTML :
<a href="javascript:void(0)" routerLink="cartoonBoxUrl()" routerLinkActive="active">Add Content to Cartoon Box</a>
The link in this routelink contains the id of the cartoon box(/carton-box/1). This id is available after the page loads. Therefore i need a way to create a route link to include this id.
So i believe we can do something like : routerLink="'cartoon-box/' + id"
but i was hoping to link routerlink to a component function