dart - Add "unknown" component from List en AngularDart -


i have list of differents components in controller , need render them, how?

dart:

@ngcontroller( selector: '[my-controller]', publishas: 'ctrl'  ) class mycontroller {    list components;    mycontroller() {      components = new list();      components.add(new componenttype1());      components.add(new componenttype2());   } } 

html:

<div my-controller>   <div ng-repeat="component in ctrl.components">      <!-- how render component here? -->   </div> </div> 


Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -