Last active
August 29, 2015 14:16
-
-
Save frankiefu/2e7ae2c04ad467b50676 to your computer and use it in GitHub Desktop.
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="../../../neoprene/components/polymer/src/expr/polymer-expr.html"> | |
<dom-module id="x-app" encapsulate> | |
<style> | |
:host { | |
display: block; | |
} | |
#foo { | |
height: 100px; | |
background-color: red; | |
} | |
</style> | |
<template> | |
<!-- the class binding will override the class (x-app-x) set for encapsulation --> | |
<div id="foo" class$="[[fooClass]]"></div> | |
</template> | |
</dom-module> | |
<script> | |
Polymer({ | |
is: 'x-app', | |
configure: function() { | |
return { | |
fooClass: 'foo' | |
} | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment