markhallen
7/4/2017 - 6:31 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');
            });