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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -