Data binding a value with @ symbol in polymer 0.5 template -
in polymer 0.5 webapp i', using multiple core-menus such following:
<core-menu id="drawermenu"> <template repeat="{{p in menuitems}}"> <paper-item> <div> <core-icon icon="{{p.icon}}"></core-icon> </div> <div style="margin-left:20px" flex>{{p.name}}</div> </paper-item> </template> </core-menu>
the menuitems array i'm listing data pulled javascript database query , contains value "@rid" every object in array. if called "rid" list other value, @ makes things difficult. cannot call "{{p.@rid}}".
so how call value in template?
Comments
Post a Comment