Questions tagged [dart-polymer]

polymer.dart is a Dart port of Polymer created and maintained by the Dart team.

Polymer.dart is a Dart port of the Polymer project.

Polymer.dart is created and maintained by the Dart team, in collaboration with the Polymer team to ensure that Polymer.dart elements and polyfills are fully compatible with Polymer.

More information on Polymer.dart, including installation and links to documentation can be found here: http://pub.dartlang.org/packages/polymer

1026 questions
39
votes
6 answers

How to query elements within shadow DOM from outside in Dart?

How can I select nodes within shadow DOM? Consider the following example: structure of "unshadowed" DOM #shadow-root

#outside shadow

#shadow-root …
Timur Fayzrakhmanov
  • 17,967
  • 20
  • 64
  • 95
25
votes
1 answer

HTML import: CustomTag not registered

I'm trying to create a custom element from polymer-element, but I cannot make the @CustomTag work. My dart file (my_element.dart) looks like this: @HtmlImport('my_element.html') library projects.projectFolder.layout; import…
tomasyany
  • 1,132
  • 3
  • 15
  • 32
20
votes
3 answers

When to use on-click or on-tap w/ Polymer?

I've researched a lot but still haven't found a good answer. When should I use on-click and when on-tap, specifically w/ Polymer? This guide focuses on programmatic event listeners, so isn't helpful in that…
David Notik
  • 2,026
  • 15
  • 21
19
votes
1 answer

Is Polymer SEO friendly?

EDIT: This is a very old question, when escaped_fragment was necessary for search engines, but nowadays, search engines do understand Javascript very well, so this question becomes irrelevant. =========== I was wondering how much SEO friendly could…
Shadoweb
  • 5,812
  • 1
  • 42
  • 55
16
votes
2 answers

Why does Angular not need a dash in component name

I wondered why Polymer elements need a dash in custom elements name like while this is not necessary for Angular components especially as Angular components also use ShadowDOM. ** Edit** It doesn't even seem to be suggested good…
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
14
votes
2 answers

Does Dart have a widget library?

Looking into Dart a year later and I don't see any comprehensive widget library. I saw KevMoo's Widget.Dart project on GitHub but none of the widgets actually seem to work. I currently use AngularJS for my projects and have a great set of libraries…
enantiomer2000
  • 349
  • 1
  • 4
  • 13
12
votes
3 answers

How to show CSS Styles of Shadow Dom in Chrome DevTools

I use Dart Polymer to create web components. To debug CSS styles I start the app in Dartium and use Chrome DevTools to inspect the styles. The problem is that all the styles defined in the