Giter VIP home page Giter VIP logo

dart-polymer-dart-examples's Introduction

Polymer.dart Samples and Examples

In which I learn all about polymer.dart. Discuss polymer.dart at [email protected] mailing list. Ask question on Stack Overflow.

Upgrading from Web UI:

See our tips and tricks for upgrading from Web UI to Polymer.dart.

Things to try with new Polymer.dart

  • Use fooChanged(oldValue) { ... } to add a convenient observer for your property "foo" - Confirmed!
  • attributeChanged lifecycle method is now implemented - Confirmed!
  • external stylesheets in the template like <link rel=stylesheet ...> should work
  • customize your custom element's creation, for example, it's easy to create one without a ShadowRoot if you want
  • generally: there are a lot of methods you can override to customize your polymer-element's behavior
  • polymer-elements without template or without script tag (using "noscript" attribute) should work - Confirmed!
  • attributes and properties are automatically bound in both directions
  • bugs where event delivery wasn't happening has been fixed
  • registration of a subclass waits for its superclass
  • bindProperty now an method on PolymerElement, and makes it easy to create a 2-way binding to another model
  • convenience methods such as fire/asyncFire (for custom events)
  • No more need for extends PolymerElement with ObservableMixin, just extend PolymerElement - Confirmed!
  • Use @published on fields that should be used for attributes (don't need the attributes attribute) - Confirmed!
  • onMutation
  • Provide direct access to oldValue/newValue in ChangeRecord (http://code.google.com/p/dart/issues/detail?id=12075)
  • Attaching custom objects to custom events
  • PropertyChangeEvent has oldValue and newValue (and target)
  • Directly extend the DOM class
  • Override shadowFromTemplate (https://code.google.com/p/dart/issues/detail?id=14230) to generate nodes not in the shadow dom

Web UI features that are missing from polymer.dart:

Access to current iteration index: https://code.google.com/p/dart/issues/detail?id=12666

Random bugs:

(This is not a complete list of bugs with polymer.dart. Just the bugs that I ran into. Some of these are feature-compatibility issues with Polymer JavaScript, others are straight-up bugs. Please don't misinterpret, polymer.dart might be useable for you in the meantime. It depends on your app.)

See the full list of Polymer.dart issues if interested.

Setting selectedIndex doesn't change select's visible option bind_to_select_field https://code.google.com/p/dart/issues/detail?id=13922

PolymerExpressions doesn't support list literals: https://github.com/dart-lang/fancy-syntax/issues/9

PolymerExpressions doesn't seem to support named bindings: https://github.com/dart-lang/fancy-syntax/issues/24

PolymerExpressions map literals in class attribute aren't treating non-null as true: https://github.com/dart-lang/fancy-syntax/issues/26

Confusion around importing nested components (with boot.js) https://code.google.com/p/dart/issues/detail?id=12400

polymer.dart compiles to very large JavaScript files: https://code.google.com/p/dart/issues/detail?id=12730

Binding to a select value doesn't work (but binding to selectedIndex works) bind_to_select_field https://code.google.com/p/dart/issues/detail?id=12779

Unable to compare against the literal null in an expression, when getter first returned a null, and now an int. e.g.: (works with numDays is null, not when is int) days_until_birthday https://code.google.com/p/dart/issues/detail?id=13044

Radio buttons not un-setting. bind_to_radio_buttons https://code.google.com/p/dart/issues/detail?id=13478 (In the meantime, see bind_to_radio_buttons for workaround.)

Importing custom elements via packages not working? custom_elements_from_package_import https://code.google.com/p/dart/issues/detail?id=14366

TODO

  • CSS in external file

Additional authors

This project received help from:

dart-polymer-dart-examples's People

Contributors

chrisbu avatar geekrumper avatar johnmccutchan avatar kevmoo avatar nelsonsilva avatar polux avatar scribegriff avatar sethladd avatar szgabsz91 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.