Hi Howard,

if i have written some function in a service will those function will be
called on injecting into controller.



On Tue, Oct 20, 2015 at 4:02 PM, Luís Loureiro <[email protected]> wrote:

> Hi Howard!
>
> Try using the $http
> <https://code.angularjs.org/1.4.7/docs/api/ng/service/$http> service to
> make the HTTP request to your *backend*.
> For me, the best practice is to create an angular service
> <https://code.angularjs.org/1.4.7/docs/guide/services> that has a method
> that uses the $http service and that makes the request and inject that
> created service into your controller.
>
> I hope this helps you.
>
> Regards,
> *Luís Loureiro*
>
> --
> 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.
>



-- 
Thanks and Regards,
*Kiran A*

-- 
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