Reload callback not working
Hi,
The list is not updating when I trigger reload callback function after modal close.
// Inside my view
<div tasty-table
bind-resource-callback="showStudents.loadAllStudentsRecords"
bind-init="showStudents.init"
bind-reload="reloadCallback"
// Inside my controller
...
Other implementations here
...
vm.reloadCallback = function () { alert("Called"); };
vm.delete = function (studId) {
// Show modal
var modalInstance = $uibModal.open({
templateUrl: 'AppScripts/Views/Student/DeleteStudent.html',
controller: 'DeleteStudentCtrl as deleteStudent',
backdrop : 'static',
keyboard : false,
resolve: {
studentId: function () {
return studId;
}
}
});
modalInstance.result.then(function (status) {
if (status === 'ok')
{
vm.reloadCallback();
}
});
The alert was executed when i call the reloadCallback function but the list is not updated By the way im using "controller as" syntax.
I also tried to remove first the modal implementation so i will stay on the same controller, but reloadCallback still not working
Is your callback firering? If I add the atrribute bind-reload="reloadCallback" to my table, the entire table will not be rendered:

or did you have a solution?
i also have this issue anyone found solution on this ? please help
hi, i have the same problem....