We have been doing some prototype work involving Lightning, Angular and AuraNG and we have a few questions.
Currently aurang:region initialises an angular module and makes it available via the configure event. However there is no way to specify what dependencies you need added to the module at creation. Is it worth modifying the aurang:region to take an array of strings specifying the dependencies. e.g.
<aurang:region configure={!c...} dependencies="ngRoute, ngCookies, ngTouch ....">
.......
</aurang:region>
It would also need to load the associated angular files, perhaps aurang:region could incorporate the aura:requires demo component that ye published before ? As an aside we know that using ngRoute will probably cause us pain down the road.
There is a related query here as to whether it's worth extending aurang:region to support an attribute indicating the name of a module to use, as opposed to having every region simply going into the same underlying module.
The second query we have is whether it might be possible to have the aura component compiler allow script blocks which have non javascript types. The reason we ask is that Angular allows us to inline template definitions in script blocks with type="text/ng-template". This would avoid them having to be coded into the controller. In our case it would facilitate us generating components the way we do pages today.
The third query relates to marshalling restrictions related to return types from Apex controllers. We created a custom apex class and attempted to return an instance of this from the controller. However the return value on the client side was an empty object. We hacked around it by serialising the return type as a string ourselves. Is this deliberate, a bug or even more likely am I being stupid ?