Skip to content

Instantly share code, notes, and snippets.

@hideokamoto
Created June 9, 2015 09:54
Show Gist options
  • Save hideokamoto/52303a144f78d9d6a5c4 to your computer and use it in GitHub Desktop.
Save hideokamoto/52303a144f78d9d6a5c4 to your computer and use it in GitHub Desktop.
Polymer1.0でのデータの流れをメモる ref: http://qiita.com/motchi0214/items/1d8751fc63e6fbaa86dd
<!-- 呼び出し部分 -->
<layout-header
title="Quick Start Sample"
desc="Here is Initial Sample Pages.">
</layout-header>
<!-- コンポーネント -->
<dom-module id="layout-header">
<template>
<h1>{{title}}</h1>
<p>{{desc}}</p>
<hr/>
</template>
</dom-module>
<!-- 定義部分 -->
<script>
Polymer({
is: "layout-header",
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment