do you use in Arrow functions?

--
thanks
netanel
בתאריך יום שלישי, 17 בספטמבר 2019 בשעה 13:31:30 UTC+3, מאת Sander Elias:

> Hi נתי שטרן,
>
> Oh, its over 2 years ago I did AngularJs, but something like this should 
> work:
>
> angular.module('plunker', []).controller('MainCtrl', function($scope,$http
> ) {
>  $scope.name = 'Plunker';
>  $http.get('https://jsonplaceholder.typicode.com/users/1 
> <https://www.google.com/url?q=https%3A%2F%2Fjsonplaceholder.typicode.com%2Fusers%2F1&sa=D&sntz=1&usg=AFQjCNHbUrBIuHIG3k9CRjYPupDgYiLmzg>
> ')
>  .then(resp => resp.data) 
>  .then(user => $scope.user = user)
> });
>
> then use user in template
> See it working in this plnkr 
> <https://next.plnkr.co/edit/9rbuP2bfeo0PvARn?open=lib%2Fscript.js&deferRun=1>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/8c6575d9-08a7-4fbd-ae14-16f627c37b23%40googlegroups.com.

Reply via email to