Skip to content

Instantly share code, notes, and snippets.

@frankiefu
Last active August 29, 2015 14:16
Show Gist options
  • Save frankiefu/2e7ae2c04ad467b50676 to your computer and use it in GitHub Desktop.
Save frankiefu/2e7ae2c04ad467b50676 to your computer and use it in GitHub Desktop.
<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