Last active
August 29, 2015 14:19
-
-
Save vsheyanov/5ae29f9853b532f49e5b to your computer and use it in GitHub Desktop.
Shadowdom styling issue
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
div { | |
background-color: yellow; | |
} |
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
@HtmlImport('child_component.html') | |
library com.polymertest.childcomponent; | |
import 'package:polymer/polymer.dart'; | |
@CustomTag('child-component') | |
class ChildComponent extends PolymerElement{ | |
ChildComponent.created() : super.created(){ | |
} | |
} |
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
<polymer-element name="child-component"> | |
<template> | |
<link rel="stylesheet" href="child_component.css"> | |
Value | |
<div>sdsfsdfsdfdsf</div> | |
</template> | |
</polymer-element> |
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
div { | |
background-color: red; | |
} |
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
@HtmlImport('parent_component.html') | |
library com.polymertest.parentcomponent; | |
import 'package:polymer/polymer.dart'; | |
@CustomTag('parent-component') | |
class ParentComponent extends PolymerElement{ | |
ParentComponent.created() : super.created(){ | |
selectedValue = new DataVO(); | |
} | |
} |
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
<polymer-element name="parent-component"> | |
<template> | |
<link rel="stylesheet" href="parent_component.css"> | |
<div> | |
<p>sdfsdfsf</p> | |
<child-component selectedValue="{{selectedValue}}"></child-component> | |
</div> | |
</template> | |
</polymer-element> |
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
name: polymertest3 | |
version: 0.0.1 | |
description: A sample web application | |
dependencies: | |
browser: any | |
polymer: ">=0.15.1 <0.17.0" | |
dev_dependencies: | |
# unittest: any | |
transformers: | |
- polymer: | |
entry_points: web/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment