I'm trying to recreate the functionality of AngularJS's ui-bootstrap dropdown with core-dropdown.
But I can't find a way to bind an external variable to the current selected item.
For example (i'm doing the Angular binding with [[ ]] instead of {{ }} to show the difference between Polymer ):
<core-dropdown valueattr="programId" selected="[[currentProgramId]]">
<core-item ng-repeat="program in programs"
ng-click="currentProgramId = program._id"
programId="[[program._id]]"
</core-dropdown>
When I click an item, it chooses the program.
But when I change the current program id outside of the dropdown, the dropdown selected item doesn't change...
Any help will be greatly appreciated!
Thanks