问题
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