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
Post a Comment