Skip to content

Instantly share code, notes, and snippets.

@JosefJezek
Last active January 30, 2017 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosefJezek/e3cd10ad985c9e49a8fb8aa2a7642f74 to your computer and use it in GitHub Desktop.
Save JosefJezek/e3cd10ad985c9e49a8fb8aa2a7642f74 to your computer and use it in GitHub Desktop.
Polymer Slack Answers

Polymer Slack Answers

What's the best way to only show an element if a with class="myclass" exists?

div ~ ::content .myclass

<div class="singleimage">
  <content select=".mainview"></content>
</div>
<div class="horizontal-border"></div>

.singleimage ::content .mainview ~ .horizontal-border

polymer serve with proxy

node ./node_modules/polyserve/bin/polyserve -p 5100 -P h2 --proxy-path api --proxy-target http://localhost:9000/api/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment