Generate html components dynamically

I went around and around on this when porting an Angular1 application that is a BBS using Markdown. Initially I was frustrated with the Angular team’s decision to eliminate this functionality, and eventually I decided that they understood their framework better than I did. So I went with this strategy, and I still think it’s the best approach for situations like this.

PS: stupid discourse won’t let me edit that post now, but <template> needs to be changed to <ng-template> going forward.

1 Like