Last active
August 29, 2015 14:13
-
-
Save creativeaura/5c760b49762de420656e to your computer and use it in GitHub Desktop.
designer
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element" myattr=""> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
</style> | |
</template> | |
<script> | |
(function() { | |
// these variables are shared by all instances of app-globals | |
var firstName = 'John'; | |
var lastName = 'Smith'; | |
Polymer({ | |
ready: function() { | |
// copy global values into instance properties | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
}); | |
})(); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment