markhallen
7/12/2017 - 5:34 PM

From https://stackoverflow.com/questions/33753035/fetchin-data-from-local-json-file-in-angularjs

$http.get('someFile.json')
            .success(function(data) {
                angular.extend(_this, data);
                defer.resolve();
            })
            .error(function() {
                defer.reject('could not find someFile.json');
            });