Check this example: http://plnkr.co/edit/Hpx8GPHt0IqKADj8K1Qc?p=info 

On Wednesday, 20 February 2013 22:47:36 UTC+5:30, Bhushan Nagaraj wrote:
>
> Hi All,
>
> I have tried loading data from a JSON file and it worked like a charm. I 
> am trying the same for an xml file but doesn't seem to work. How or what 
> would be the approach to load data from an xml file?
>
> *JSON - Worked*
> $scope.seats = [];
> $http.get('seats/seats.json').success(function(data) {
> $scope.seats = data;
> });
>
> *XML - Not working*
> $scope.data = [];
> $http.get('data/test.xml').success(function(data) {
> $scope.data = data;
> }); 
>
> Thank you
> Bhushan
>

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