2015-11-24 23:57:07 +01:00
|
|
|
var phonecatApp = angular.module('phonecatApp', []);
|
|
|
|
|
2015-11-25 01:29:11 +01:00
|
|
|
phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {
|
|
|
|
$http.get('assets/js/phones.json').success(function(data) {
|
|
|
|
$scope.phones = data;
|
|
|
|
});
|
|
|
|
$scope.orderProp = 'name';
|
2015-11-24 23:57:07 +01:00
|
|
|
});
|