When I pass values to the attribute of the polymer element, I can pass the object through Polymer data binding. However, if I decide to leave the "polymer land" and want to set the attribute of the object, I cannot. Should I pass objects into attributes?
If the answer is “no, you should use methods for this,” the next question will be: “Can I call an elemental method without being within the Polymer?” For example, if I have a polymer element:
<hello></hello>
and I want to access a method that he called the "world." In Polymer, this will be:
this.$.hello.world();
Is it possible to call this method without defining the Polymer element?
source
share