angularjs - Pass data to an Angular 2.0 component -
i know it's pre-release, know if it's possible pass argument angular 2.0 component
<div *foreach="#city in myobj.cities"> <city-view current="city"></city-view> </div> class cityview{ ... }
i have code above, not sure how pass city city-view component. know proposed syntax? above code loop, not allow me pass data component.
i have tried in newer alpha version of angular 2.0 , syntax now:
<div *for="#city of myobj.cities" > <city-view [current]="city"></city-view> </div>
here full working example of angular 2.0 template: http://www.syntaxsuccess.com/viewarticle/recursive-treeview-in-angular-2.0