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

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

问题描述

我目前正在为我的下一个项目寻找网络框架,出于某些原因,我对 angulardart 感兴趣.

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 ?

推荐答案

Plain Dart 中的延迟加载

Deferred loading in plain Dart

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

Angular supports deferred loading for statically and dynamically added components.

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

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

AngularDart is suitable as a framework for a progressive web app.

不过,更具体的文档似乎很少.

More specific documentation seems sparse though.

对于延迟加载之外的 pwa 功能,请使用您在问题中提到的 pwa 包.

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

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

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