1 <!doctype html> 2 <!-- 3 @license 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 5 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 7 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 8 Code distributed by Google as part of the polymer project is also 9 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 10 --> 11 <html> 12 <head> 13 14 <meta charset="utf-8"> 15 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 16 17 <title>iron-meta</title> 18 19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> 20 <link rel="import" href="../../paper-styles/demo-pages.html"> 21 <link rel="import" href="../iron-meta.html"> 22 </head> 23 <body> 24 25 <div class="vertical-section vertical-section-container centered"> 26 <h1><iron-meta></h1> 27 <iron-meta key="info" value="foo/bar"></iron-meta> 28 The <code>value</code> stored at <code>key="info"</code> is <code><meta-test></meta-test></code>. 29 </div> 30 31 <script> 32 33 Polymer({ 34 35 is: 'meta-test', 36 37 ready: function() { 38 this.textContent = new Polymer.IronMetaQuery({key: 'info'}).value; 39 } 40 41 }); 42 43 </script> 44 45 </body> 46 </html> 47