i have a trouble with my phones.json file. I edded Folder phones and phones.json into my project.

enter image description here

I writed homeController.js:

var phonecatApp = angular.module("phonecatApp", []);

phonecatApp.controller('PhoneListCtrl',['$scope', '$http', function($scope,$http) {
    $http.get('../phones/phones.json').success(function (data) {
        $scope.phones = data;

     $scope.orderPror = 'age';

after running a project i have error: enter image description here

Why failedto load phones.json ? Thanks for your answers.

Related posts

Recent Viewed