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

How to return Promise for ng-tasty #207

Open
sali1982 opened this issue Jan 21, 2016 · 0 comments
Open

How to return Promise for ng-tasty #207

sali1982 opened this issue Jan 21, 2016 · 0 comments

Comments

@sali1982
Copy link

Hi there,

I have changed my code so it does not reload some values everytime that page gets loaded as that value was already loaded in other controllers.

So, I have if condition, if the result is already there I do not post to the server, and I send back the current result.
As ng-tasty really needs Promise to return to the table, So I do return it this way:

return Promise.resolve(xxxx);

It works. Nice! but the paging does not get effected, unless I click somewhere on the page! Strange!
** the data changes, just the page number and current page number does not get updated, unless used clicks anywhere on the page!!!

Please help!

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

1 participant