Attribute Web Components

57 views
Skip to first unread message

cletusw

unread,
Jun 18, 2014, 6:20:59 PM6/18/14
to polym...@googlegroups.com
First stab at Angular attribute directive-style native web components (mixins? decorators?). I'm sure there are tons of problems. Any comments would be great!

I wasn't able to get it to work under the platform polyfills after a grueling 2 minutes of trying, so you'll have to use Chrome Canary.

Justin Fagnani

unread,
Jun 18, 2014, 6:42:46 PM6/18/14
to cletusw, polymer-dev
Hi Clayton, I did something like this for Dart called behaviors (it's hosted at https://github.com/justinfagnani/behaviors.dart )

Unless I'm missing something your example doesn't use mutation observers so it won't be able to attach mixins to newly created elements. Is there some other mechanism for handling that?

Cheers,
  Justin



Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/18023b18-b667-4551-9314-d77753ba51b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cletusw

unread,
Jun 18, 2014, 6:57:54 PM6/18/14
to polym...@googlegroups.com, cle...@gmail.com
Correct, mine's not dynamic at all yet :)

Rob Dodson

unread,
Jun 18, 2014, 8:00:06 PM6/18/14
to polym...@googlegroups.com, cle...@gmail.com
I'm really excited to see that this is getting some attention. I want to spend some time digging into Behaviors and this project post I/O. Thanks Clayton
Reply all
Reply to author
Forward
0 new messages