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')
 .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 angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/c741a4f6-6a0c-4484-9753-b6999c5afae5%40googlegroups.com.

Reply via email to