aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps/frontPageApp/frontPageApp.js
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-04 23:42:17 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-04 23:42:17 +0100
commitb895e15d3c9bd4c7a1d420c99af9d1f2efca8a0b (patch)
tree6b2baa5593f7d621ab8319ae00b35f0b766acda8 /src/main/webapp/apps/frontPageApp/frontPageApp.js
parent1902b2c1dfff62c0225a170db38a4882df9143e6 (diff)
downloadesper-testing-b895e15d3c9bd4c7a1d420c99af9d1f2efca8a0b.tar.gz
esper-testing-b895e15d3c9bd4c7a1d420c99af9d1f2efca8a0b.tar.bz2
esper-testing-b895e15d3c9bd4c7a1d420c99af9d1f2efca8a0b.tar.xz
esper-testing-b895e15d3c9bd4c7a1d420c99af9d1f2efca8a0b.zip
o Showing recent badges on the front page.
Diffstat (limited to 'src/main/webapp/apps/frontPageApp/frontPageApp.js')
-rwxr-xr-xsrc/main/webapp/apps/frontPageApp/frontPageApp.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/webapp/apps/frontPageApp/frontPageApp.js b/src/main/webapp/apps/frontPageApp/frontPageApp.js
index 624c484..d5af99f 100755
--- a/src/main/webapp/apps/frontPageApp/frontPageApp.js
+++ b/src/main/webapp/apps/frontPageApp/frontPageApp.js
@@ -1,10 +1,11 @@
'use strict';
-var frontPageApp = angular.module('frontPageApp', ['ngGrid', 'person', 'pagingTableService', 'core.directives']).config(function ($routeProvider, $locationProvider) {
+var frontPageApp = angular.module('frontPageApp', ['ngGrid', 'person', 'badge', 'pagingTableService', 'core.directives']).config(function ($routeProvider, $locationProvider) {
$routeProvider.
when('/', {controller: FrontPageCtrl, templateUrl: '/apps/frontPageApp/frontPage.html?noCache=' + noCache});
});
-function FrontPageCtrl($scope, Person, PagingTableService) {
+function FrontPageCtrl($scope, Person, Badge, PagingTableService) {
$scope.persons = PagingTableService.create($scope, PagingTableService.defaultCallback(Person));
+ $scope.recentBadges = Badge.query();
}