Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ctrl = {
- name: 'PhoneListCtrl',
- args: ['$scope', '$http',],
- method: function ($scope, $http) {
- $http.get('phones/phones.json').success(
- function(data) {
- $scope.phones = data;
- }
- );
- $scope.orderProp = 'age';
- }
- }
- phonecatApp.controller(ctrl);
Advertisement
Add Comment
Please, Sign In to add comment