var phonecatApp = angular.module('phonecatApp', []); phonecatApp.controller('PhoneListCtrl', function ($scope, $http) { $http.get('assets/js/phones.json').success(function(data) { $scope.phones = data; }); $scope.orderProp = 'name'; });