Hi Garwan50, You really should start using plunker for this kind of questions. (also, don't post your API keys in a public forum ;))
Here is a working sample <http://plnkr.co/edit/5mVSCUIzIvGF7jOGXDID?p=preview> for you. Firstly, $http returns a promise, wrapping it into another one is not needed, and confusing. So I rewrote your service to utilize it as it is. Secondly, I assumed you use an controllerAs with the name movie? If so, you are putting it in as a parameter to the getMovie function. Then as the result comes back, you break the 'link' and create a local variable. (objects are passed by reference, if you reassign a primitive directly to the local variable, the reference get lost.) If you have any questions on this, don't hesitate to ask, 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
