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

Using this table with mat-stepper and it is giving so many errors related to datasource #1

Open
VivekShingala opened this issue Aug 3, 2018 · 1 comment

Comments

@VivekShingala
Copy link

Hi Daniele

Thank you for this awesome library. I have tried this in my mat-stepper component and what happens is below:

  1. Stepper gets initialised
  2. I am on the step 1 and my ngx datatable is on step 8
  3. My step with ngx-nested-data-table is initialised as well
  4. It throws errors related to datatable 'undefined'

How to fix this issue?

Is there any way to look for the datasource and if it is not null, initialise datatable?
Is there any other way to fix this?
Thanks

@daniele-zurico
Copy link
Owner

Hi
The source code of the library is completely open and you can have a look inside how it’s build.
There’s also a post on my blog that explain what I did.
I suppose that the problem you experiencing is that the data of your table are not present because you’re on the first step but the data table is initialised any way.
Did you try to pass some mock data and see if this happen in any case?

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

2 participants