You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by jo...@apache.org on 2014/08/31 14:11:06 UTC

git commit: WW-4399 struts2-archetype-angularjs uses absolute paths

Repository: struts
Updated Branches:
  refs/heads/develop b88c5d561 -> fbf4113c2


WW-4399 struts2-archetype-angularjs uses absolute paths


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/fbf4113c
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/fbf4113c
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/fbf4113c

Branch: refs/heads/develop
Commit: fbf4113c2e0e256645b1f10a3693111b63e681e8
Parents: b88c5d5
Author: Johannes Geppert <jo...@gmail.com>
Authored: Sun Aug 31 14:09:38 2014 +0200
Committer: Johannes Geppert <jo...@gmail.com>
Committed: Sun Aug 31 14:09:38 2014 +0200

----------------------------------------------------------------------
 .../archetype-resources/src/main/webapp/js/bootstrap.js          | 4 ++--
 .../archetype-resources/src/main/webapp/js/controllers.js        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/fbf4113c/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js
----------------------------------------------------------------------
diff --git a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js
index 8983318..501427f 100644
--- a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js
+++ b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js
@@ -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' });
     }

http://git-wip-us.apache.org/repos/asf/struts/blob/fbf4113c/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js
----------------------------------------------------------------------
diff --git a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js
index 01afe21..9a5b71f 100644
--- a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js
+++ b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js
@@ -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;
             }).