Here-is-what-you-need-to-know-about-dynamic-components-in-Angular icon indicating copy to clipboard operation
Here-is-what-you-need-to-know-about-dynamic-components-in-Angular copied to clipboard

How to manage ts code in this OTF scenario?

Open rudydel opened this issue 7 years ago • 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!

rudydel avatar Jan 03 '18 11:01 rudydel

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

maxkoretskyi avatar Jan 03 '18 12:01 maxkoretskyi

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

rudydel avatar Jan 03 '18 12:01 rudydel