I am new to angularjs and i am doing simple study on angular controllers and models. this is my javascript model code.
var testApp = angular.module('testApp', []);
testApp.controller('testCtrl', function testCtrl($scope ,$http) {
$http.get('test.json').success(function ($data){
$scope.artists = $data;
});
});
The webpage is loaded but comes an exception. I am using firefox in Windows 7.
[Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 >.>(NS_ERROR_DOM_BAD_URI)" location: "file:///....// angular.min.js Line: 72"]
Does anybody knows a solution.. I dont need to make it in a server only need to use local machine..