Polymer online

by kshep92

HTML

<base href="https://polygit.org/components/">
<link rel="import" href="polymer/polymer.html">

<dom-module id="parent-elm">
  <template>
    <child-elm model="[[query]]"></child-elm>
  </template>
  <script>
  	Polymer({
    	is: 'parent-elm',
      properties: { query: { value: '', type: String } }
    });
  </script>
</dom-module>

<dom-module id="child-elm">
  <template>
    [[model]] [[modelType]]
  </template>
  <script>
  	Polymer({
    	is: 'child-elm',
      properties: { model: { type: Object, value: function() { return {}; } } },
      attached: function() { this.modelType = typeof this.model; }
    });
  </script>
</dom-module>

<parent-elm query="Kevin "></parent-elm>