aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps/personApp/personApp.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/apps/personApp/personApp.js')
-rw-r--r--src/main/webapp/apps/personApp/personApp.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/webapp/apps/personApp/personApp.js b/src/main/webapp/apps/personApp/personApp.js
new file mode 100644
index 0000000..59f5a7d
--- /dev/null
+++ b/src/main/webapp/apps/personApp/personApp.js
@@ -0,0 +1,12 @@
+'use strict';
+
+var personApp = angular.module('personApp', ['personService']).config(function ($routeProvider, $locationProvider) {
+ $routeProvider.
+ when('/', {controller: PersonCtrl, templateUrl: '/apps/personApp/person.html?noCache=' + noCache});
+});
+
+function PersonCtrl($scope, $location, PersonService) {
+ PersonService.get({uuid: uuid}, function (person) {
+ $scope.person = person;
+ });
+}