maxkoretskyi/Here-is-what-you-need-to-know-about-dynamic-components-in-Angular

How to manage ts code in this OTF scenario?

rudydel opened this issue · 2 comments

Noob here, I can manage to save html templates in a db, then read them and generate components on the fly based on the stored html code passed to the "template" const, but I can't think of how I would manage to do the same with the associated TypeScript code (the class for the component). Can someone please help? Thanks a lot for the guidance!

Hey, can you please create a question on stackoverflow with details and post a link here?

Thanks so much, I posted it here. Let me know if you need more info.