old_contents: 'use strict';
  
  /* Controllers */
  
  var puntsControllers = angular.module('puntsControllers', []);
  
  phonecatControllers.controller('PhoneListCtrl', ['$scope', 'Phone',
    function($scope, Phone) {
      $scope.phones = Phone.query();
      $scope.orderProp = 'age';
    }]);
  
  phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', 'Phone',
    function($scope, $routeParams, Phone) {
      $scope.phone = Phone.get({phoneId: $routeParams.phoneId}, function(phone) {
        $scope.mainImageUrl = phone.images[0];
      });
  
      $scope.setImage = function(imageUrl) {
        $scope.mainImageUrl = imageUrl;
      };
    }]);
  
new_contents: 'use strict';
  
  /* Controllers */
  
  var puntsControllers = angular.module('puntsControllers', []);
  
  phonecatControllers.controller('PuntsStatus', ['$scope', 'Punts',
    function($scope, Punts) {
      $scope.punts = Punts.query();
    }]);
  
  phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', 'Phone',
    function($scope, $routeParams, Phone) {
      $scope.phone = Phone.get({phoneId: $routeParams.phoneId}, function(phone) {
        $scope.mainImageUrl = phone.images[0];
      });
  
      $scope.setImage = function(imageUrl) {
        $scope.mainImageUrl = imageUrl;
      };
    }]);
  
subject: Update controllers.js