Imagine a scenario where a page contains a submit button. Once the value of this button is retrieved, an API call is made to display some text (for example, "Name"). Now, here's what I would like to achieve:
- Convert the displayed text ("Name") into a clickable link
- Upon clicking on this link, return the value back to the top textbox and submit it again. This action will trigger a different result from the API (e.g. "Name2" in this instance)
Check out the sample code for reference: https://stackblitz.com/edit/angular-ivy-3zshve?file=src/app/app.component.ts