mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
24 lines
572 B
HTML
24 lines
572 B
HTML
<!--
|
|
Copyright 2013 The Polymer-Project Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style
|
|
license that can be found in the LICENSE file.
|
|
-->
|
|
<element name="x-foo">
|
|
<template>
|
|
It LIVES <content></content>
|
|
<x-bar label="{{label}}"></x-bar>
|
|
</template>
|
|
<script>
|
|
Polymer.register(this, {
|
|
label: '',
|
|
ready: function(root) {
|
|
this.textContent = 'cordon bleu';
|
|
this.blueate();
|
|
},
|
|
blueate: function() {
|
|
this.style.backgroundColor = 'lightblue';
|
|
}
|
|
});
|
|
</script>
|
|
</element>
|