WW-4399 struts2-archetype-angularjs uses absolute paths

This commit is contained in:
Johannes Geppert
2014-08-31 14:09:38 +02:00
parent b88c5d561f
commit fbf4113c2e
2 changed files with 3 additions and 3 deletions
@@ -24,10 +24,10 @@ var angularStrutsApp = angular.module('angularStrutsApp', ['ngRoute']);
angularStrutsApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.when('/projects', {
templateUrl: '/partials/projects.html',
templateUrl: 'partials/projects.html',
controller: 'ApacheProjectsController'
}).when('/home', {
templateUrl: '/partials/home.html',
templateUrl: 'partials/home.html',
controller: 'HomeController'
}).otherwise({ redirectTo: '/home' });
}
@@ -26,7 +26,7 @@ angularStrutsApp.controller('HomeController', function ($scope) {
angularStrutsApp.controller('ApacheProjectsController', function ($scope, $http) {
this.init = function() {
$http({method: 'GET', url: '/projects'}).
$http({method: 'GET', url: 'projects'}).
success(function(data) {
$scope.projects = data.projectNames;
}).