I recently started learning AngularJS and I am trying to read a JSON file from my local system. However, when I attempt to do so, I encounter an exception error that says: "Access to restricted URI denied XMLHttpRequest."
Here is the code snippet:
var deferred = q.defer();
http.get('file:///C:/configjson.json').success(function(data) {
angular.extend(this, data);
deferred.resolve(data);
}).error(function() {
deferred.reject('could not find File');
});
I would appreciate any assistance with this issue.