OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE | |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS | |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS | |
6 Code distributed by Google as part of the polymer project is also | |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS | |
8 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
9 | |
10 <!-- | |
11 `core-signals` provides basic publish-subscribe functionality. | |
12 | |
13 Note: avoid using `core-signals` whenever you can use | |
14 a controller (parent element) to mediate communication | |
15 instead. | |
16 | |
17 To send a signal, fire a custom event of type `core-signal`, with | |
18 a detail object containing `name` and `data` fields. | |
19 | |
20 this.fire('core-signal', {name: 'hello', data: null}); | |
21 | |
22 To receive a signal, listen for `core-signal-<name>` event on a | |
23 `core-signals` element. | |
24 | |
25 <core-signals on-core-signal-hello="{{helloSignal}}"> | |
26 | |
27 You can fire a signal event from anywhere, and all | |
28 `core-signals` elements will receive the event, regardless | |
29 of where they are in DOM. | |
30 | |
31 @group Polymer Core Elements | |
32 @element core-signals | |
33 @status stable | |
34 @homepage github.io | |
35 --> | |
36 </head><body><polymer-element name="core-signals" assetpath=""> | |
37 | |
38 </polymer-element> | |
39 <script charset="utf-8" src="core-signals-extracted.js"></script></body></html> | |
OLD | NEW |