Hi Antoine,

Your first try was actually quite close! You don't need an global function, 
but you can use a function.
have a look at this plunk <http://goo.gl/JOk7CK>. In your case, have a 
close look at services.js.

Does this help enough? If you want/need I can dig in deeper.

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/groups/opt_out.

Reply via email to