admin管理员组文章数量:1322838
I'm considering html5, angularJS for data binding and also google closure compiler and the closure library for interactive web applications. Do those work nicely together? Unfortunately there seem to be no detailed reports up to now.
I have adobe flex experience, but I'm fairly new to pure js. So the questions can be considered to be from a beginner's perspective. There is no codebase that needs to be ported, everything will be developed from scratch.
- Is anyone else using this combination successfully?
- Are there any firsthand reports?
- Do you recommend the individual technologies in this context, or are there better alternatives to combine?
- Are there any good examples, example projects or even tutorials (for the combination - not the individual technologies)?
- Any pitfalls a beginner should be aware of?
- Are there any other orthoganal technolgies that I should also use or at least consider?
Some more or less relevant links I already found:
- !msg/angular/hePiqQA-MCI/uTirEtNLahwJ
- !msg/angular/QpdXrTLG7Ac/zjZAQVOqRlgJ
I'm considering html5, angularJS for data binding and also google closure compiler and the closure library for interactive web applications. Do those work nicely together? Unfortunately there seem to be no detailed reports up to now.
I have adobe flex experience, but I'm fairly new to pure js. So the questions can be considered to be from a beginner's perspective. There is no codebase that needs to be ported, everything will be developed from scratch.
- Is anyone else using this combination successfully?
- Are there any firsthand reports?
- Do you recommend the individual technologies in this context, or are there better alternatives to combine?
- Are there any good examples, example projects or even tutorials (for the combination - not the individual technologies)?
- Any pitfalls a beginner should be aware of?
- Are there any other orthoganal technolgies that I should also use or at least consider?
Some more or less relevant links I already found:
- https://groups.google.com/forum/#!msg/angular/hePiqQA-MCI/uTirEtNLahwJ
- https://groups.google.com/forum/#!msg/angular/QpdXrTLG7Ac/zjZAQVOqRlgJ
- New users can't post more than two links, so here is one more as a comment: groups.google.com/group/closure-library-discuss/browse_thread/… – thomre Commented Jun 14, 2012 at 11:28
- 1 I like these type of questions and in a way it is very useful, but surprised to see why there is no attempt of close voting this on the grounds of non constructive, opinion, etc. Unpredictable. – Saran Commented Jan 30, 2014 at 6:21
2 Answers
Reset to default 14Closure Compiler
You can definitely compile your code (Angular itself is compiled with Closure compiler), although you can only use simple optimizations at this point.
In general we want Angular to play well together with the compiler.
Closure library
There is a bunch of project inside Google, using the library together with Angular.
They use goog.provide() and goog.require() for dependencies. Also using the utilities like goog.isString() or goog.inherits() is absolutely straightforward.
Using closure UI components might require some extra work (although, again, there are projects using it).
Hope this help
Change code
function MyCtrl($scope) {/* code */}
To
var MyCtrl = ['$scope', function($scope) {/* code */}]
本文标签: javascriptHTML5angularJS with closure compiler andor closure libraryStack Overflow
版权声明:本文标题:javascript - html5, angularJS with closure compiler andor closure library - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739195055a2145861.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论