Polymer 1.0: How to pass an argument to a Polymer function from an attribute?

You could utilize HTML5 data attributes instead. Try like this: <paper-button id=”foo” on-tap=”bar” data-args=”foo,some other value,2″>Click</paper-button> … <script> (function() { Polymer({ is: ‘example’, properties: {…}, bar: function(e){ var args = e.target.getAttribute(‘data-args’).split(‘,’); // now args = [‘foo’, ‘some other value’, ‘2’] } }); })(); </script>

How to safely load Polymer in unknown environment – multiple versions or namespace?

The solution for now is to rely on package management to resolve Polymer to a single compatible version for a project and its dependencies, and HTML Imports to de-duplicate loading of dependencies from multiple sources. If you vend your elements as Bower packages, then a site can include them, with their dependencies and imports of … Read more

Polymer element with javascript dependencies

Private resources should be installed in your component folder and used directly. But shared resources, those resources that other components my also want to use (like marked), should be handled as dependencies. We suggest two conventions for handling shared dependencies: always use the canonical path which is ../<package-name> (you did this already). Polymer by convention … Read more

Paper-Button always as upper case

I had the same issue and I solved the problem via adjusting the default theme. Add the following code to a file (name of your choice).js import { createMuiTheme } from ‘@material-ui/core/styles’; const theme = createMuiTheme({ typography: { button: { textTransform: ‘none’ } } }); export default theme; You can then add the file to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)