angular-dart

How to add a component programmatically in Angular.Dart?

牧云@^-^@ 提交于 2019-11-26 04:26:02
问题 I would like to dynamically build a component tree basing on some information received from AJAX calls. How to programmatically add a component to the DOM from inside of other component? I have <outer-comp> and I would like, basing on some logic, insert an <inner-comp> . The following code just inserts the elements <inner-comp></inner-comp> to the DOM, and not actual <inner-comp> representation. @NgComponent( selector: \'outer-comp\', templateUrl: \'view/outer_component.html\', cssUrl: \'view