This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zeno Rocha
committed
Apr 26, 2014
1 parent
2664378
commit ee8055c
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- Import Polymer --> | ||
<link rel="import" href="../../polymer/polymer.html"> | ||
|
||
<!-- Define your custom element --> | ||
<polymer-element name="my-element"> | ||
|
||
<script> | ||
Polymer('my-element', { | ||
// Fires when an instance of the element is created | ||
created: function() {}, | ||
|
||
// Fires when the "<polymer-element>" has been fully prepared | ||
ready: function() {}, | ||
|
||
// Fires when the element was inserted into the document | ||
attached: function() {}, | ||
|
||
// Fires when the element was removed from the document | ||
detached: function() {}, | ||
|
||
// Fires when an attribute was added, removed, or updated | ||
attributeChanged: function(attr, oldVal, newVal) {} | ||
}); | ||
</script> | ||
|
||
</polymer-element> |