如何使用Polymer构建具有多个视图的Dart应用程序 [英] How to structure a Dart application with multiple views with Polymer

查看:115
本文介绍了如何使用Polymer构建具有多个视图的Dart应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题之前已被问过,但自从该问题的答案,Dart已采用聚合物替代Web UI。是否有Polymer版本的答案这个问题?此外,我看到了有关路线的答案,我喜欢,但是进一步调查它,使我相信路线和聚合物不能一起玩。

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.

我因为我对Angular感到很舒服,但是把它看作是一种至少在Dart世界中聚合的竞争技术。

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.

推荐答案

由于Polymer只是web_ui的更新版本(Polymer> = 0.5.0,web_ui is< ; 0.5.0)的相同框架,我相信原始问题中的响应仍然有效,只有语法和API更改需要更新(即,新的Element.tag()vs新的Element.html()等)。

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

这篇关于如何使用Polymer构建具有多个视图的Dart应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆