jmesserly / dart-custom-element-demo

Example of a custom element written in Dart, using JS interop for registration
MIT License
21 stars 4 forks source link

Add support for many elements #1

Closed donny-dont closed 5 years ago

donny-dont commented 5 years ago

@jmesserly just taking a stab at making this a bit more extensible. The connected disconnected I'm guessing would completely fail if compiled out with dart2js.

jmesserly commented 5 years ago

oh wow, thank you! looks great :)

donny-dont commented 5 years ago

@jmesserly @jifalops the thing I'm not sure about is how to get it so the JS can talk to dart properly. If you add something to connected or disconnected it'll work in DDC but like I said I'm guessing this will fall over when dartjs gets at it.