Dynamically creating an Angular component in Angular Dart

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.

+4
source share
1 answer

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.

0
source

Source: https://habr.com/ru/post/1674780/


All Articles