Hi, I have setup this plunkr <http://plnkr.co/edit/btqMmv> to demonstrate, what I am trying to do. In fact, the code within a regular browser environment works fine, but my Karma tests keeps to be failing on this and I don't understand why.
Generally, I try to achieve to dynamically compile a directive and pass some configuration options via two-way-binding into it while the directive controller itself adds some more configuration options. As you can see in the plunkr, I have setup the config object with a property 'a' which the value 1 assigned. When the directive is compiled and the controller is executed, it adds another property 'b' with the value 2 assigned. Both are accessible when I access them from the isolated scope in the *regular browser *environment. I have setup a karma test which I thought would exactly reflect this scenario, but it keeps failing with the following error: *TypeError: 'undefined' is not an object (evaluating 'elementScope.config')* Can someone help me to find what I am missing? Thanks, Tobias. -- 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.
