yjbanov / butterfly

A web framework for Dart based on Flutter's widget model
Apache License 2.0
156 stars 13 forks source link

Add a package for Angular interop #36

Closed jonahwilliams closed 7 years ago

jonahwilliams commented 7 years ago

Adds the AngularRenderNode and AngularWidget classes, as well as a top-level bootstrapAngular() method. This should be called directly in main to initialize angular's platform dependencies.

This also includes the class AngularApplicationWidget which doesn't really do much. In the future it will allow providing an Injector via BuildContext previously this would init Angular, but that is too much work for the RenderTree.

jonahwilliams commented 7 years ago

Woops, didn't update after running stagehand, will update the license and test info

jonahwilliams commented 7 years ago

I moved the ComponentFactory , ProjectedNodes and Injector interfaces to the RenderNode to make it more obvious that they are static for the lifetime of the RenderNode, not the particular Widget configuration.

jonahwilliams commented 7 years ago

Can we ignore the failing tests? seems to be in package/butterfly

yjbanov commented 7 years ago

Can we ignore the failing tests? seems to be in package/butterfly

We probably shouldn't. I bet it's because of the analysis_options.yaml. Let's move it back, and I'll fix the analysis errors later.