I’d like to know how to make elements in a text clickable. The text is user generated content which gets enhanced by a pipe which looks for specific patterns in the text and surrounds them with a which applies some styling to this pattern.
Now I’d like to present an ActionSheet when the user clicks such element. How can I achieve this, since its not part of the template at compile time?
I think I got the idea, so I break the text up into “marked” and “text” parts, store them as array and use some switch to display it as text or special marked element. Thats a clever idea and will surely work, I think I’ll give it a try.