• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!doctype html>
2<!--
3@license
4Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8Code distributed by Google as part of the polymer project is also
9subject 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>&lt;iron-meta&gt;</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