Angular 5 removed the runtime compiler, and my understanding is that it's now impossible to dynamically compile templates due to this.
So I need to come up with another way of accomplishing what I need; hopefully someone can point me in the right direction.
I have a video platform written in Angular. People can post comments on the videos, and can include a timestamp somewhere in their comment, such as:
Great video! Maybe a bit more colour at 00:32, make it look more like 01:20?
I'm matching each timestamp using Regex, and attempting to add a call to the component in the timestamp link:
const exp = /\b[0-9]*\:[0-9]*\b/; comment.commentText = comment.commentText.replace(exp, (match) => { return '<a href="javascript:void(0);" (click)="jumpTo(\'' + match + '\')">' + match + '</a>'; }); With the ability to compile a custom template now missing, how can I get this to work?
Thanks in advance