I basically want to create and add a component to the DOM programmatically at runtime. Please note that a similar question was sent here , but it relates to Angular 1, this question relates to Angular 2.
You can use a dynamic component from angular2_components: https://github.com/dart-lang/angular2_components/tree/master/lib/src/components/dynamic_component
This allows you to pass the [Type] of the component and complete the task.
Source: https://habr.com/ru/post/1674780/More articles:Rounding to specific numbers in Python 3.6 - pythonIs it possible to call a method that accepts this. Handle as an argument inside a desktop background in C # - multithreadingChange the arguments of the function, but save as is if one argument is a multi-line array and the string is not long - phpstormНе удается выйти из Python script с помощью Ctrl-C, если поток выполнил webbrowser.open() - pythonhow to interrupt a thread that calls a webbrowser in python - pythonhow to extract nested html element to the same level in js - javascriptIs there a "Hot Publish" way for a .NET Core application? - asp.net-coreJenkins build error from groovy script - jenkinsWhy does ASP.NET Core crashes after migrating to Visual Studio 2017? - asp.net-coreHow do I repeat the ajax request until the condition is satisfied using the RxJS Observable? - javascriptAll Articles