Skip to content

Instantly share code, notes, and snippets.

@edlvj
Created June 19, 2016 11:34
Show Gist options
  • Save edlvj/4668005b493536d17b0b7b0bde6d922d to your computer and use it in GitHub Desktop.
Save edlvj/4668005b493536d17b0b7b0bde6d922d to your computer and use it in GitHub Desktop.
'use strict';
angular.module('products', ['xml'])
.config(function ($httpProvider) {
$httpProvider.interceptors.push('xmlHttpInterceptor');
})
.controller('ProductCtrl',function ($scope, $http) {
$http.get('goods.xml').success(function (data) {
$scope.offers = data.yml_catalog.shop.offers.offer;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment