socek

Untitled

Jul 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ctrl = {
  2.     name: 'PhoneListCtrl',
  3.     args: ['$scope', '$http',],
  4.     method: function ($scope, $http) {
  5.         $http.get('phones/phones.json').success(
  6.             function(data) {
  7.                 $scope.phones = data;
  8.             }
  9.         );
  10.  
  11.         $scope.orderProp = 'age';
  12.     }
  13. }
  14. phonecatApp.controller(ctrl);
Advertisement
Add Comment
Please, Sign In to add comment