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.
Some more or less relevant links I already found:
Closure 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 */}]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With