Sha256: 39e954711496802eada04262421f521a08dc438be796d09258ac201eac3c462d

Contents?: true

Size: 1.39 KB

Versions: 6

Compression:

Stored size: 1.39 KB

Contents

<!doctype html>
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<html>
  <head>
    <title>iron-signals demo</title>
    <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
    <link rel="import" href="../iron-signals.html">
  </head>
<body>

    <template id="my-element" is="dom-bind">
     Hello
    </template>

    <template id="my-app" is="dom-bind">
      <iron-signals on-iron-signal-foo="fooSignal"></iron-signals>
      <content></content>
    </template>

    <script>
      document.addEventListener("WebComponentsReady", function() {
        document.querySelector('#my-element').fire('iron-signal', {name: "foo", data: "Foo!"});
      });
      document.querySelector("#my-app").fooSignal = function(e, detail, sender) {
        var div = document.createElement('div');
        div.innerHTML = '<br>[my-app] got a [' + detail + '] signal<br>';
        document.body.appendChild(div);
      };
    </script>

  </body>
</html>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
polymer-elements-rails-1.0.1 app/assets/components/iron-signals/demo/index.html
polymer-elements-rails-1.0.0 app/assets/components/iron-signals/demo/index.html
polymer-elements-rails-1.0.0.pre.rc.1 app/assets/components/iron-signals/demo/index.html
polymer-iron-rails-1.0.0.pre.rc.3 app/assets/components/iron-signals/demo/index.html
polymer-iron-rails-1.0.0.pre.rc.2 app/assets/components/iron-signals/demo/index.html
polymer-iron-rails-1.0.0.pre.rc.1 app/assets/components/iron-signals/demo/index.html