ng:controller
=
"my.super.awesome.namespace.AwesomeController"
@export works already, you'd need to annotate the types and methods and the Compiler won't rename them. This really isn't ideal though, the opposite is what I've been pushing for. Renaming to happen on the templates so the exporting isn't needed at all.
function Controller(scope) {
scope.example = function() {};
}
<div ng:show="example()">
becomes
function A(s) {s.e=function(){}}
<div ng:show="e()">
Eventually we'd probably want to rename the ng:show to something like "ng-a" as well.
- 2 event models, should be ok no? I guess eventually you dont use the closure events any more right? Just let the Angular events + data binding take care of all that stuff.
- I really like the closure testing libs (Especially all the mocking libs). Closure testing tools are built on top of JSUnit, I assume testing frameworks are pluggable? Or am I stuck with Jasmine
- I see that angular.service takes a string. How would this work when the compiler renames things?
- Are namespaces supported, I mean in the tutorial I saw all constructors lived in global namespace, can I have things like:
ng:controller
=
"my.super.awesome.namespace.AwesomeController
... Am I setting myself up for disappointment and/or pain?