1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-12 08:18:44 +00:00

Moved api call to a service

This commit is contained in:
2016-03-02 13:34:41 +00:00
parent 459585fce2
commit 817e1fb0c1
6 changed files with 35 additions and 20 deletions

View File

@@ -35,7 +35,7 @@
<!--leftsidebar-->
</div>
<div class="col-md-8" style="padding-left: 2%;">
<div class="container" ui-view="main" ng-controller="homeController">
<div class="container" ui-view="main" ng-controller="tournamentsController">
<h2>All Tournaments</h2>
<br>
<table class="table">
@@ -49,7 +49,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="tournament in query">
<tr ng-repeat="tournament in allTournaments">
<td>{{ tournament.name }}</td>
<td>{{ tournament.address }}</td>
<td>{{ tournament.director }}</td>
@@ -65,7 +65,6 @@
</div>
</div>
</div>
</div>
</body>
<!-- Latest compiled and minified JavaScript -->