Polymer 1.0 Global Variables

Grokys picture Grokys · Jun 15, 2015 · Viewed 16.1k times · Source

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 generated on the <dom-module> instead which means that change notifications will be generated on only one of the <app-globals>.

What is the recommended way of implementing this pattern in Polymer 1.0?

Answer

Arco picture Arco · Jul 31, 2015

Polymer element <iron-meta> is also an option. For me this was the easiest solution.