Added router to applications, added application controller
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
<h1> Jäsenhakemukset </h1>
|
||||
|
||||
<div>
|
||||
<table id="choose-address-table" class="ui-widget ui-widget-content">
|
||||
<tbody>
|
||||
<tr ng-repeat="x in applications">
|
||||
<th>{{ x.submitted }}</th>
|
||||
<th>{{ x.member }}</th>
|
||||
<input type="button" value="More info" class="btn btn-primary" ng-click="show(x.)"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@@ -66,8 +66,8 @@ app.controller("editController", function($scope, $http, $route, $routeParams, $
|
||||
}
|
||||
});
|
||||
|
||||
/*app.controller("applController", function($scope, $http){
|
||||
app.controller("applController", function($scope, $http){
|
||||
$http.get("/members/api/requests").then(function(response){
|
||||
$scope.applications = response.data;
|
||||
});
|
||||
});*/
|
||||
});
|
||||
|
||||
@@ -24,6 +24,10 @@ app.config(['$routeProvider', function($routeProvider){
|
||||
templateUrl:"/static/html/muokkaa_jasenta.html",
|
||||
controller:'editController',
|
||||
})
|
||||
.when('/applications',{
|
||||
templateUrl:'/static/html/jasenhakemukset.html',
|
||||
controller:'applController',
|
||||
})
|
||||
.otherwise({
|
||||
'redirectTo':"/"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user