From 348ec4e14aeaf4e98fcab96f0ae7242d178db69b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 26 Dec 2012 13:30:42 +0100 Subject: o Starting on a better front page. --- src/main/webapp/apps/frontPageApp/frontPageApp.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/webapp/apps/frontPageApp/frontPageApp.js (limited to 'src/main/webapp/apps/frontPageApp/frontPageApp.js') diff --git a/src/main/webapp/apps/frontPageApp/frontPageApp.js b/src/main/webapp/apps/frontPageApp/frontPageApp.js new file mode 100644 index 0000000..4c5df8b --- /dev/null +++ b/src/main/webapp/apps/frontPageApp/frontPageApp.js @@ -0,0 +1,12 @@ +'use strict'; + +var frontPageApp = angular.module('frontPageApp', ['personService']).config(function ($routeProvider, $locationProvider) { + $routeProvider. + when('/', {controller: FrontPageCtrl, templateUrl: '/apps/frontPageApp/frontPage.html?noCache=' + noCache}); +}); + +function FrontPageCtrl($scope, $location, PersonService) { + PersonService.query(function (persons) { + $scope.persons = persons; + }); +} -- cgit v1.2.3