You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Hi!
I'm traying to make detail view in a datatable populated with a collection and ng-repeat TR.
The expanded child is showed when the user click on a row.
When the detail is expanded, the controller inject a ng-include that's render with the $render of Angular and inside it, i load other html with a "nested" datatable.
The problem is when I tray to populate the nested table with and other collecion/ng-repeat the console show me the next error:
Error: Expected expression in form of "item in collection[ track by id]" but got "{0}".
at Object.render (angular-datatables.js:880)
at angular-datatables.js:124
at processQueue (angular.js:16170)
at angular.js:16186
at Scope.$eval (angular.js:17444)
at Scope.$digest (angular.js:17257)
at Scope.$apply (angular.js:17552)
at done (angular.js:11697)
at completeRequest (angular.js:11903)
at XMLHttpRequest.requestLoaded (angular.js:11836)(anonymous function) @ angular.js:13708(anonymous function) @ angular.js:10347processQueue @ angular.js:16178(anonymous function) @ angular.js:16186$eval @ angular.js:17444$digest @ angular.js:17257$apply @ angular.js:17552done @ angular.js:11697completeRequest @ angular.js:11903requestLoaded @ angular.js:11836XMLHttpRequest.send (async)(anonymous function) @ angular.js:11881sendReq @ angular.js:11642serverRequest @ angular.js:11352processQueue @ angular.js:16170(anonymous function) @ angular.js:16186$eval @ angular.js:17444$digest @ angular.js:17257$apply @ angular.js:17552(anonymous function) @ angular.js:25627dispatch @ jquery.js:4737elemData.handle @ jquery.js:4549
Angular-datatables expects a ngRepeat directive. Except in your nested table, you did not have it.
Try putting an array of one element instead of directly the object.
On a side note, I don't think it's a wise idea to have nested tables.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I'm traying to make detail view in a datatable populated with a collection and ng-repeat TR.
The expanded child is showed when the user click on a row.
When the detail is expanded, the controller inject a ng-include that's render with the $render of Angular and inside it, i load other html with a "nested" datatable.
The problem is when I tray to populate the nested table with and other collecion/ng-repeat the console show me the next error:
My controller is like this:
My main html is this:
And finally my included html is:
Can anyone helpme or tellme what i'm bad coding?
The text was updated successfully, but these errors were encountered: