-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
But if you want to try the needlessly complex route then here is the service in a library I wrote. The code is abstracted there so it might not help a lot but if you do want to dig through that entire section and look at how I use a view container ref for where things can be placed, attach template ref directives to individual pieces of content, the small demo just to show that it works, and see the demo actually executing then by all means knock yourself out.