Skip to content

Instantly share code, notes, and snippets.

@yeukhon
Created August 21, 2013 17:54
Show Gist options
  • Save yeukhon/6297706 to your computer and use it in GitHub Desktop.
Save yeukhon/6297706 to your computer and use it in GitHub Desktop.
$scope.get = function() {
var api_url = "/api/users"
$http.get(api_url).success(function(response, status, headers, config){
$scope.users = response.data;
});
};
<table class="table">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tr ng-repeat="r in users">
<td><a href="{{r.name}}" target="_blank">{{r.name}}</a></td>
</tr>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment