Files
InventoryTracker/InventoryTraker.Web/js/customer/CustomerListController.js
T
2016-08-08 14:47:35 -04:00

19 lines
397 B
JavaScript

(function() {
'use strict';
window.app.controller('CustomerListController', CustomerListController);
CustomerListController.$inject = ['$uibModal', 'customerSvc'];
function CustomerListController($uibModal, customerSvc) {
var vm = this;
vm.add = add;
vm.customers = customerSvc.customers;
function add() {
$uibModal.open({
template: '<add-customer />'
});
}
}
})();