渐进式Web应用程序和AngularDart [英] Progressive web app and AngularDart

查看:94
本文介绍了渐进式Web应用程序和AngularDart的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为下一个项目寻找Web框架,由于某些原因,我对angular dart 感兴趣.

I am currently looking for a web framework for my next project and for some reasons I'm interested in angulardart.

但是同时,我希望我的Web应用程序遵循PWA准则.

But at the same time I want my webapp to follow PWA guidelines.

我进行了很多搜索,但是我没有在angulardart中找到PWA的示例. 我看到了JS对应示例,或者找到了 pwa dart包,但是我缺少了解angulardart框架,以了解是否有可能在dart中使用.

I searched quite a lot, but I haven't found an example of PWA in angulardart. I saw some examples for the JS counterpart or found pwa dart package, but I lack the knowledge of angulardart framework to know if it's possible in dart.

那么,有可能在angulardart中制作PWA吗?

So, is it possible to make a PWA in angulardart ?

推荐答案

在普通Dart中延迟加载

Deferred loading in plain Dart

Angular支持对静态和动态添加的组件进行延迟加载.

Angular supports deferred loading for statically and dynamically added components.

  • https://github.com/dart-lang/angular/blob/f7bb02861ad4aa8b6cc60df784091480bb07e6eb/angular_ast/CHANGELOG.md#040-alpha2
  • https://github.com/dart-lang/angular/blob/master/doc/component_loading.md#deferred-loading

另请参见 https://github.com/dart-lang/angular/blob/9a2b824cef4e1c45871bb7fad7cbbb1af1b80ed1/ROADMAP.md#code-size

AngularDart适合作为渐进式网络应用程序的框架.

更具体的文档似乎很少.

More specific documentation seems sparse though.

对于超出延迟加载的pwa功能,请使用您在问题中提到的pwa软件包.

For pwa features beyond deferred loading use the pwa package you mention in your question.

这篇关于渐进式Web应用程序和AngularDart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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