vulcanize for angular.dart?

牧云@^-^@ 提交于 2019-12-20 02:15:26

问题


There is vulcanize like tool for polymer.dart (done by polymer transformer), that nicely puts all the imported components inline and makes it easy to serve the app by reducing the number of round trips to server. Is there any tool like vulcanize for angular.dart projects? esp. the one that can pull all the component's html into a single file and make it easy for deploying angular.dart app?


回答1:


You can use template-cache-transformer. From it's home page:

The Template Cache Transformer generates the template cache and 
optionally merges the CSS and HTML of AngularDart components into
a hosting Web page.



回答2:


AngularDart has the template_cache_generator which creates a Dart file to pre-populate Angular's template cache.

As far as I know, we have not done to work to include the template cache generator in the Angular transformer group. There is no technical reason why it can't be there.



来源:https://stackoverflow.com/questions/25127598/vulcanize-for-angular-dart

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