Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: polymer_1.0.4/bower_components/iron-signals/README.md

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 iron-signals
2 ============
3
4 `iron-signals` provides basic publish-subscribe functionality.
5
6 Note: avoid using `iron-signals` whenever you can use
7 a controller (parent element) to mediate communication
8 instead.
9
10 To send a signal, fire a custom event of type `iron-signal`, with
11 a detail object containing `name` and `data` fields.
12
13 ```javascript
14 this.fire('iron-signal', {name: 'hello', data: null});
15 ```
16
17 To receive a signal, listen for `iron-signal-<name>` event on a
18 `iron-signals` element.
19
20 ```html
21 <iron-signals on-iron-signal-hello="helloSignal">
22 ```
23
24 You can fire a signal event from anywhere, and all
25 `iron-signals` elements will receive the event, regardless
26 of where they are in DOM.
OLDNEW
« no previous file with comments | « polymer_1.0.4/bower_components/iron-signals/.gitignore ('k') | polymer_1.0.4/bower_components/iron-signals/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698