Skip to content
Snippets Groups Projects
Commit 1adafc5b authored by Dapeng's avatar Dapeng
Browse files

remove context-path

parent dba73101
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,4 @@ spring.messages.basename=messages/messages
management.contextPath=/manage
# Logging
logging.level.org.springframework=INFO
server.context-path=/petclinic
\ No newline at end of file
logging.level.org.springframework=INFO
\ No newline at end of file
......@@ -32,7 +32,8 @@
<div ng-repeat="pet in $ctrl.owner.pets">
<h3>{{pet.name}}</h3>
<p>
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}}
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}} -
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}/visits">Add Visit</a>
</p>
<h4>Visits</h4>
<p style="margin-left: 2em;" ng-repeat="visit in pet.visits">
......
......@@ -5,7 +5,7 @@ angular.module('ownerForm', [
]);
angular.module("ownerForm").component("ownerForm", {
templateUrl: "/petclinic/scripts/app/owner-form/owner-form.template.html",
templateUrl: "scripts/app/owner-form/owner-form.template.html",
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
var self = this;
......
......@@ -5,10 +5,10 @@ angular.module('ownerList', [
]);
angular.module("ownerList").component("ownerList", {
templateUrl: "/petclinic/scripts/app/owner-list/owner-list.template.html",
templateUrl: "scripts/app/owner-list/owner-list.template.html",
controller: ["$http", function ($http) {
var self = this;
$http.get('/petclinic/owner/list').then(function(resp) {
$http.get('owner/list').then(function(resp) {
self.owners = resp.data;
});
}]
......
......@@ -5,7 +5,7 @@ angular.module('petForm', [
]);
angular.module("petForm").component("petForm", {
templateUrl: "/petclinic/scripts/app/pet-form/pet-form.template.html",
templateUrl: "scripts/app/pet-form/pet-form.template.html",
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
var self = this;
var ownerId = $routeParams.ownerId || 0;
......
......@@ -5,7 +5,7 @@ angular.module('visits', [
]);
angular.module("visits").component("visits", {
templateUrl: "/petclinic/scripts/app/visits/visits.template.html",
templateUrl: "scripts/app/visits/visits.template.html",
controller: ["$http", '$routeParams', '$location', '$filter', function ($http, $routeParams, $location, $filter) {
var self = this;
var petId = $routeParams.petId || 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment