Skip to content

Instantly share code, notes, and snippets.

@bluebaroncanada bluebaroncanada/state Secret
Created Jan 8, 2016

Embed
What would you like to do?
.state('scans', {
url: '/scans',
templateUrl: '/Content/ng/scan/list.html',
controller: function($scope, $http) {
$scope = {};
$scope.scans = {};
$http.get('/scan/view/list').success(function(response) {
$scope.scans = response;
});
},
controllerAs: "ls"
})
<div ng-controller="ls">
<table class="table">
<thead>
<tr>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="scan in scans">
<td>{{scan.title}}</td>
</tr>
</tbody>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.