I am new to angularjs and I am doing a simple study of 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 loads, but an exception is thrown. I am using firefox on windows 7.
[Exception ... "Access to restricted URI was denied" code: "1012" nsresult: "0x805303f4>.> (NS_ERROR_DOM_BAD_URI)" location: "file: ///....// angular.min.js Line: 72 "]
Does anyone know a solution. I do not need to do this on the server, I only need to use the local machine.
source share