Hi Deepak,
I'm also a new angular, just start for 2 days :D. I think you can try to
solve it with using $http, and use method
$http.get('url').success(function(data)) {...}.
In {...}, you can add $scope.fileTransferHistoryList = data, then you
retrieve data from data object.
Hope it can help.
On Monday, January 11, 2016 at 8:07:09 AM UTC+7, Deepak Pal wrote:
>
> Hello i am new to anguler world, from the rest call i am getting the data
> like below
>
>
> {
> "fileHistory": [
> {
> "totalTransferCount": "20",
> "successfulTransferCount": "9",
> "failedTransferCount": "0",
> "avgFileSize": "45970.90",
> "avgTimeTaken": "00:00:05.6",
> "avgTransferRate": "56.6184",
> "serialNumber": "1234567777",
> "model": "test",
> "filename": "test.zip"
> },
> {
> "totalTransferCount": "20",
> "successfulTransferCount": "9",
> "failedTransferCount": "0",
> "avgFileSize": "45970.90",
> "avgTimeTaken": "00:00:05.6",
> "avgTransferRate": "56.6184",
> "serialNumber": "34343343555",
> "model": "test1",
> "filename": "test1.zip"
> }
> ]
> }
>
> in my anguler service call i am using below code :-
>
> function(response){ $scope.fileTransferHistoryList=response.fileHistory;}
>
>
> but this code is not working nothing displayed on UI. Please help. In rest
> side there is a warpper class which has list of object .
>
>
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.