From 129f8ee5182a924893450c4ba465a481e72e9262 Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Wed, 15 Jun 2016 12:26:14 +0100 Subject: [PATCH] Added new files for angular. --- src/main/webdemo/.gitignore | 2 ++ src/main/webdemo/www/bower.json | 19 +++++++++++++++++++ src/main/webdemo/www/js/app.js | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 src/main/webdemo/.gitignore create mode 100644 src/main/webdemo/www/bower.json create mode 100644 src/main/webdemo/www/js/app.js diff --git a/src/main/webdemo/.gitignore b/src/main/webdemo/.gitignore new file mode 100644 index 0000000000..1eb1fa5e92 --- /dev/null +++ b/src/main/webdemo/.gitignore @@ -0,0 +1,2 @@ +bower_components + diff --git a/src/main/webdemo/www/bower.json b/src/main/webdemo/www/bower.json new file mode 100644 index 0000000000..0c934a5896 --- /dev/null +++ b/src/main/webdemo/www/bower.json @@ -0,0 +1,19 @@ +{ + "name": "www", + "description": "", + "main": "", + "license": "MIT", + "homepage": "", + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "angular": "^1.5.6", + "jquery": "^3.0.0" + } +} diff --git a/src/main/webdemo/www/js/app.js b/src/main/webdemo/www/js/app.js new file mode 100644 index 0000000000..df0fb120c1 --- /dev/null +++ b/src/main/webdemo/www/js/app.js @@ -0,0 +1,9 @@ +"use strict" + +var irsViewer = angular.module('irsViewer', []) + +irsViewer.controller('HomeController', ($http, $scope) => { + $http.get('http://localhost:31338/api/irs/deals').then((resp) => { + $scope.deals = resp.data + }) +}) \ No newline at end of file