getPropertiesByStatusService.js (service)
(function () {
appModule.service('getPropertiesByStatusService', ['abp.services.app.property', function (propertyService) {
this.propertyList = function (filter) {
propertyService.getPropertiesByStatus({ filter: filter })
.success(function (result) {
return result;
});
};
}
]);
})();
index.js(controller)
(function () {
appModule.controller('tenant.views.propertymanagement.index', ['$scope', 'getPropertiesByStatusService', function ($scope, getPropertiesByStatusService) {
var vm = this;
var list = getPropertiesByStatusService.propertyList(null);
}]);
})();
Can you tell me how to get the value for the list
? Due to async
nature it doesn't show any value.