OLD | NEW |
1 iron-meta | 1 iron-meta |
2 ========= | 2 ========= |
3 | 3 |
4 `iron-meta` is a generic element you can use for sharing information across the
DOM tree. | 4 `iron-meta` is a generic element you can use for sharing information across the
DOM tree. |
5 It uses [monostate pattern](http://c2.com/cgi/wiki?MonostatePattern) such that a
ny | 5 It uses [monostate pattern](http://c2.com/cgi/wiki?MonostatePattern) such that a
ny |
6 instance of iron-meta has access to the shared | 6 instance of iron-meta has access to the shared |
7 information. You can use `iron-meta` to share whatever you want (or create an ex
tension | 7 information. You can use `iron-meta` to share whatever you want (or create an ex
tension |
8 [like x-meta] for enhancements). | 8 [like x-meta] for enhancements). |
9 | 9 |
10 The `iron-meta` instances containing your actual data can be loaded in an import
, | 10 The `iron-meta` instances containing your actual data can be loaded in an import
, |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 Or, in a Polymer element, you can include a meta in your template: | 38 Or, in a Polymer element, you can include a meta in your template: |
39 | 39 |
40 ```html | 40 ```html |
41 <iron-meta id="meta"></iron-meta> | 41 <iron-meta id="meta"></iron-meta> |
42 ``` | 42 ``` |
43 | 43 |
44 ```javascript | 44 ```javascript |
45 this.$.meta.byKey('info').getAttribute('keyUrl'); | 45 this.$.meta.byKey('info').getAttribute('keyUrl'); |
46 ``` | 46 ``` |
OLD | NEW |