Skip to content

Instantly share code, notes, and snippets.

@anjanawijesundara
Created April 13, 2015 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanawijesundara/ad3fd0db01f33752bf2e to your computer and use it in GitHub Desktop.
Save anjanawijesundara/ad3fd0db01f33752bf2e to your computer and use it in GitHub Desktop.
app.js Part two
app.controller ('CustomerListControler',[
'$scope','$http',
function ($scope, $http) {
$http.get('api/Customers').success(function(data) {
$scope.customers = data;
});
}
]),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment