-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
trackBy must be a function, but received null #388
Comments
This one happend when switched from angular Currently I just rolled back to angular Angular-cli has hats ( So part of my
|
I'm experiencing same exact issue. I'm unable to use the table in any format (basic, inline, etc.). I'm using angular 2.3.1 |
@cortopy hmm i am using 2.3.1 and it works fine. Now i upgraded because of a checkbox bug was fixed in the newer versions and started to experience this 💃 |
https://github.com/swimlane/ngx-datatable/blob/master/src/components/body/body-row.component.ts#L18 incorrect usage of |
@DzmitryShylovich - I'm doing incorrect usage? Can you provide correct approach? |
Just question - why this one is not closed? Mentioned commit solved the issue. |
I assume it is documented somewhere, but this appears to be a breaking change in 2.4.1 - hence people's confusion. The comment doesn't clearly explain that. |
The change for tracking is a breaking change? I did not realize that. |
@amcdnl yes - previously you could do
or
it's documented that way all over the place... e.g. http://stackoverflow.com/questions/36322829/how-to-use-track-by-inside-ngfor-angular-2 I know that specific example is before 2.0.0 BUT I was using trackBy this way until at least 2.2.3 (I just upgraded to 2.4.1 and it now only accepts a function and will throw with the syntax in the first example). |
I agree this is a breaking change, the problem appeared in 2.3 for me. |
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
The text was updated successfully, but these errors were encountered: