Created
January 2, 2015 04:58
-
-
Save wcadap/94805e8a2dc64e9199ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contactApp.controller('contactController', | |
['$scope', 'contactDataService', '$location', | |
function categoryController($scope, contactDataService) { | |
$scope.contacts = []; | |
loadContactData(); | |
function loadContactData() { | |
contactDataService.getContacts() | |
.then(function () { | |
$scope.contacts = contactDataService.contacts; | |
}, | |
function () { | |
//Error goes here... | |
}) | |
.then(function () { | |
$scope.isBusy = false; | |
}); | |
}; | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment