Skip to content

Instantly share code, notes, and snippets.

@TyrfingMjolnir
Created April 3, 2014 00:43
Show Gist options
  • Save TyrfingMjolnir/9946248 to your computer and use it in GitHub Desktop.
Save TyrfingMjolnir/9946248 to your computer and use it in GitHub Desktop.
Sample $scope function reloading table data
<a ng-click="getData()">Reload</a>
$scope.getData = function() {
$http.get( 'phones/phones.json' ).success( function( data ) {
$scope.phones = data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment