$scope.storeCategory = function()
{
expenses.storeCategory($scope.form);
$scope.data.expenses = expenses.getCategories();
$scope.closeModal();
}
change to
$scope.storeCategory = function()
{
expenses.storeCategory($scope.form).then(function(data){
$scope.data.expenses = expenses.getCategories();
$scope.closeModal();
});
};
The storeCategory must be a promise, and the logic to reload the infor of categories must be when success those promise, hope helps.