How to structure a Dart application with multiple

2019-05-28 22:53发布

问题:

This question has been asked before but since the answer to that question Dart has adopted polymer to replace Web UI. Is there a Polymer version of the answer to this question? Also, I saw the answer relating to routes, which I like, but investigating it further has led me to believe that routes and polymer do not play well together yet.

I would also like to solicit views on the new Angular-Dart since I am comfortable with Angular but see it as a competing technology to polymer at least in the Dart world.

How to build a complex Web UI application with multiple views?

回答1:

Since Polymer is just a later version of web_ui (Polymer >= 0.5.0, web_ui is < 0.5.0) of the same framework, I believe the responses in the original question are still valid, only the syntax and API changes need be updated (ie, new Element.tag() vs new Element.html() etc).

See my sample on using routes with polymer