Commit 8c45b1df by Thomas Bosch

.

parent 89109a91
......@@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/css" href="/webjars/bootstrap/${bootstrap.version}/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
</head>
<body ng-app="service-registry">
<body ng-app="registry">
<script type="text/javascript">
// Work around Google font rendering issues in webkit browsers on Windows 7
if (navigator.userAgent.indexOf("NT 6.1") != -1) {
......
'use strict';
angular.module('service-registry', [
angular.module('registry', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ngResource',
'service-registry.services'
'registry.services'
])
.config(function ($routeProvider) {
$routeProvider
......
'use strict';
angular.module('service-registry')
angular.module('registry')
.controller('MainCtrl', function ($scope, Application, ApplicationDetail, $location) {
//Gets the service from /api/services
$scope.applications = Application.query();
$scope.applications = Application.query();
$scope.addApplication = function () {
window.location = "/#add-applications";
......
'use strict';
angular.module('service-registry.services', ['ngResource'])
angular.module('registry.services', ['ngResource'])
.factory('Application', ['$resource',
function($resource){
return $resource(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment