Intial
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.app.directive('lostCustomersReport', lostCustomersReport);
|
||||
|
||||
function lostCustomersReport() {
|
||||
return {
|
||||
scope: true,
|
||||
templateUrl: '/js/app/report/templates/lostCustomersReport.tmpl.html',
|
||||
controller: controller,
|
||||
controllerAs: 'vm'
|
||||
}
|
||||
}
|
||||
|
||||
controller.$inject = ['$http'];
|
||||
function controller($http) {
|
||||
var vm = this;
|
||||
|
||||
vm.isLoading = true;
|
||||
|
||||
$http.post('/Report/LostCustomers')
|
||||
.success(function (customers) {
|
||||
vm.customers = customers;
|
||||
vm.isLoading = false;
|
||||
});
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user