In Polymer 0.5 the advice on globals was as outlined in this question/answer:  Polymer global variables  However in Polymer 1.0 this doesn't seem to work. Change notifications are not automatically generated on the underlying model, they are gene...
In my polymer app, when I open a paper-dialog using an iPhone, it's not centered, as opposed to opening it using Chrome or Safari using the a desktop Mac or PC.  I'm dynamically constructing the paper-dialog element and placing it in the DOM...
In Polymer 1.x I am trying to push data from my database to an array, but for whatever reason, it suddenly stopped working.  When running this code  ready: function(){     var leserbriefRef = firebase.database().ref('leserbriefe');         le...
What's the best way to enforce require check on paper-radio-group? I saw another question and answer that uses fallback-selection, here, but I want to force the user to choose "yes" or "no".  <paper-radio-group selected="&#...
I'm triyng to bind a paper-toggle-button to a boolean but it's not working. I already tried binding with $= and evaluating with ?=. I want to show if the user isActive.  <template is="dom-repeat" items={{users}}>  <button cla...
I have created a function in global.function.js file as   function getData(flag) { if (flag === 1) {   return "one";  }  else {   return "not one";  } }   which then is imported using custom-js-import.html element:  <script src=...
I am trying to change the color of an element when a button is pressed. I want a paper ripple effect to be triggered in that element when the button is pressed and the color changes.  How am I supposed to do that?  Target element:  <paper-toolbar...
In my code below, the if condition is only evaluated at init. How do I get it to re-evaluate the condition whenever myType is changed?  <dom-module id="media-element">   <template>     <template is="dom-if" if="[[is...
I'm encountering an issue binding an object that contains a function from angular to Polymer 1.0. The function is not being passed through into the target object in the custom element. Here is a simplified code sample:  The custom element has a s...
Trying to instantiate template using Polymer.Templatizer behavior.  Here is simple template:  <template>         <div>           item         </div> </template>   Here is code that should create element from given template:  /...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.