Is there any combination between this: https://www.polymer-project.org/components/paper-elements/demo.html#paper-dropdown-menu and angularjs.
I tried but still cannot get it to work..
<paper-dropdown-menu label="Categories">
<paper-dropdown class="dropdown">
<core-menu class="menu">
<template>
<paper-item ng-repeat="c in categories">{{c}}</paper-item>
</template>
</core-menu>
</paper-dropdown>
</paper-dropdown-menu>
Any advice would be greatly appreciated !
This is how I did it using ng-polymer-elements.
I first created a mapping for the
core-menu
, which will allow you to use ng-model and call methods on your scope when you select an item.HTML
Notice the
name
attribute in the paper-item. This is very important because it is used by the core-menu to track the selected item. You can use a different attribute name by settingvalueattr="foo"
on the core-menu.If you need more details or functionality, you can add
ng-tap="myFunction($event)"
to the core-menu element to call a method on your scope. You can then get information about the item selected from the event details.