title: Polymer 1.0: <iron-meta> usage
body: <p>Proper usage of the Polymer 1.0 element <code>&lt;iron-meta&gt;</code> is confusing. Here is the <a href="https://github.com/PolymerElements/iron-meta" rel="nofollow">link on Github</a>. And here is the link to the <a href="https://elements.polymer-project.org/elements/iron-meta" rel="nofollow">Polymer demo site</a>.</p>
  
  <p><strong>Can someone please provide a proper code example of how to make it work?</strong></p>
  
  <p>This is the code I have so far.</p>
  
  <pre><code>&lt;dom-module id="generic-element"&gt;
    &lt;style&gt;...&lt;/style&gt;
    &lt;template&gt;
      &lt;iron-meta id="meta" key="info" value="foo/bar"&gt;&lt;/iron-meta&gt;
      The &lt;code&gt;value&lt;/code&gt; stored at &lt;code&gt;key="info"&lt;/code&gt; is &lt;code&gt;&lt;span&gt;{{test}}&lt;/span&gt;&lt;/code&gt;. 
    &lt;/template&gt;
  &lt;/dom-module&gt;
  &lt;script&gt;
    (function() {
      Polymer({
        is: 'generic-element',
        properties: {
          test: {
            value: function(){
              return "Hello world"; // This is the only thing I can get to work so far.
           // return (new Polymer.IronMetaQuery({key: 'info'}).value); // Doesn't totally break.
           // All my other below attempts totally fail. Everything breaks.
           // return this.$.meta.IronMetaQuery({key: 'info'}).value;
           // return this.IronMetaQuery({key: 'info'}).value;
           // return this.$.meta.byKey('info').getAttribute('value');
           // return this.$.meta.byKey('info').value;
            }
          }
        }
      });
    })();
  &lt;/script&gt;
  </code></pre>
  
  <p>Here is the <a href="https://github.com/PolymerElements/iron-meta/issues/11" rel="nofollow">Github link</a> to the issue. And here is a <a href="https://github.com/veronicawwashington/polymer-sandbox/blob/master/app/elements/my-auth-register/my-auth-register.html" rel="nofollow">Github repository</a> that contains the complete problem code in context of the complete web app.</p>