Initial version of the angular app.
This commit is contained in:
parent
e107d79612
commit
995ad8b679
7 changed files with 90 additions and 10 deletions
10
static/js/controllers.js
Normal file
10
static/js/controllers.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
function RepoListCtrl($scope, Restangular) {
|
||||
var repositoryFetch = Restangular.all('repository/');
|
||||
repositoryFetch.getList().then(function(resp) {
|
||||
$scope.repositories = resp.repositories;
|
||||
});
|
||||
}
|
||||
|
||||
function LandingCtrl($scope) {
|
||||
|
||||
}
|
Reference in a new issue