.success of $http get -Angular js Equivalent in Angular 2

13 views
Skip to first unread message

Santhosh Kumar S

unread,
Sep 30, 2016, 4:08:54 AM9/30/16
to AngularJS
Hi,

 My requirement is to get the data from a webapi and do some calculations, i am  unable to catch exactly when  my function returns the the data from webapi. In angular 1  I used to write code  in .success block which fires when the data is returned from webapi, now  in angular 2  I am unable find the substitute for  .success, can any one guide me here.

Thanks

Santhosh
Reply all
Reply to author
Forward
0 new messages