Progressive web app and AngularDart

百般思念 提交于 2019-12-12 08:54:52

问题


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

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

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.

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


回答1:


Deferred loading in plain Dart

  • https://news.dartlang.org/2014/08/dart-16-adds-support-for-deferred.html

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

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

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

More specific documentation seems sparse though.

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



来源:https://stackoverflow.com/questions/48798934/progressive-web-app-and-angulardart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!