Hi Sander,umi,

thanks for reacting. It's working now, as it should.
(Sander, in your 2nd answer  controller() gives a "Error: controller is not 
a function")

Fix: 
I use the same configuration but the _controller_ function I initially 
called from Directive looked like this:

function init(){...}

That function could not be found. When I changed it to 

this.init = function(){...}

the controller in the Directive was _not_ an empty object but contained the 
init method...
Probably 'this.init' defined the method on the Controller (=function) scope 
and 'function init()' defined it on the Window scope?
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to