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

Table function runs twice when it is in an Angular-Material mdTab directive #176

Closed
kevinlbatchelor opened this issue Oct 29, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@kevinlbatchelor
Copy link

I'm using angular-material, and ngTasty and I cannot figure out why the tasty table is running twice when it is added inside one of the angulars md-tab directive. Something either in material or tasty. Of course my table function is making a rest call which is now firing twice.

http://jsfiddle.net/s46gs95e/

@Zizzamia
Copy link
Owner

For a reason I don't understand yet, when ngTable was contained inside the Material Tab, the 'params' was detected change after the initialization, and was again calling the xhr.
I fixed by making sure that ngTable will run max one xhr at a time.

@Zizzamia
Copy link
Owner

Also just release on bower the version 0.5.9 with this fix in it!

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

No branches or pull requests

2 participants