Skip to content

Instantly share code, notes, and snippets.

<!--
@license
Copyright (c) 2014 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
-->
<link rel="import" href="../components/polymer/polymer.html">
<!doctype html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="../../../polymer/components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="x-foo.html">
</head>
<!doctype html>
<html>
<head>
<title>iron-icons</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../iron-icons.html">
<dom-module id="x-app">
<script>
Polymer({
is: 'x-app',
properties: {
<dom-module id="x-app">
<script>
Polymer({
is: 'x-app',
properties: {
<dom-module id="x-app">
<template>
<template is="x-repeat" items="{{data.items}}">
<div>{{item.name}}</div>
</template>
<button on-click="updateItem">update item</button>
</template>
<script>
Polymer.FooBehavior = {
properties: {
bar: {
type: String,
readOnly: true
}
}
}
<!doctype html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="../../components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="x-app.html">
</head>
<body>
<script>
Polymer({
is: 'x-expression',
properties: {
operator: String,
<!doctype html>
<html>
<head>
<title>core-toolbar</title>
<script src="../webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-toolbar/core-toolbar.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-icon-button/core-icon-button.html">