Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload callback not working #215

Open
darkmakukudo opened this issue Mar 30, 2016 · 4 comments
Open

Reload callback not working #215

darkmakukudo opened this issue Mar 30, 2016 · 4 comments

Comments

@darkmakukudo
Copy link

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.

@darkmakukudo
Copy link
Author

I also tried to remove first the modal implementation so i will stay on the same controller, but reloadCallback still not working

@Disane87
Copy link

Disane87 commented Aug 19, 2016

Is your callback firering? If I add the atrribute bind-reload="reloadCallback" to my table, the entire table will not be rendered:

image

or did you have a solution?

@ghost
Copy link

ghost commented Feb 9, 2017

i also have this issue anyone found solution on this ? please help

@dv9
Copy link

dv9 commented Feb 14, 2017

hi, i have the same problem....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants