Intial
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
(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 />'
|
||||
});
|
||||
}
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user