Hi trzczy, What is it you are trying to accomplish? Usually, if you need to return a promise, it belongs in a service, not in a directive. then you are using the DOM to store data, and reading it back out. I'm not sure if you do this just for the sample. Nevertheless is this a bad idea, Angular hands you way better tools to handle this kind of thing. also the DOM manipulation in the controller is a big no-no. Again, there are much better way's to handle this.
So, what is it you are trying to achieve? if I know that, I can offer you better help. Regards Sander -- 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.
