Added new files for angular.

This commit is contained in:
Clinton Alexander 2016-06-15 12:26:14 +01:00
parent 7cd8839a59
commit 129f8ee518
3 changed files with 30 additions and 0 deletions

2
src/main/webdemo/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
bower_components

View File

@ -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"
}
}

View File

@ -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
})
})