38 |
39 |
--------------------------------------------------------------------------------
/3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-list/owner-list.component.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | angular.module('ownerList')
4 | .component('ownerList', {
5 | templateUrl: 'scripts/owner-list/owner-list.template.html',
6 | controller: 'OwnerListController'
7 | });
8 |
--------------------------------------------------------------------------------
/3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-list/owner-list.controller.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | angular.module('ownerList')
4 | .controller('OwnerListController', ['$http', function ($http) {
5 | var self = this;
6 |
7 | $http.get(_baseUrl + 'api/customer/owners').then(function (resp) {
8 | self.owners = resp.data;
9 | });
10 | }]);
11 |
--------------------------------------------------------------------------------
/3-serverless-microservice-stack/spring-petclinic-static/scripts/owner-list/owner-list.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | angular.module('ownerList', ['ui.router'])
4 | .config(['$stateProvider', function ($stateProvider) {
5 | $stateProvider
6 | .state('owners', {
7 | parent: 'app',
8 | url: '/owners',
9 | template: '