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
The next function loops through each element of $scope.dataSparqlResponses (each element is an array of data) and put the value of the iteration in $scope.dataSparqlAux. And $scope.dataSparqlAux is the variable used in the grids (data input). The problem is that in each iteration this variable ($scope.dataSparqlAux) is reassigned, so in the template I can only see the last grid with data.
controller.js
template.html
is possible to do something like this?
How can I fix this to create grids and display information dynamically?
The part with "data: 'dataSparqlAux" is only a reference to that variable. You're not storing the data into your grid at that moment.
You'd have to create a new variable for each sub-document and add it as a reference.
I have a problem creating ng-grids dynamically:
The next function loops through each element of $scope.dataSparqlResponses (each element is an array of data) and put the value of the iteration in $scope.dataSparqlAux. And $scope.dataSparqlAux is the variable used in the grids (data input). The problem is that in each iteration this variable ($scope.dataSparqlAux) is reassigned, so in the template I can only see the last grid with data.
controller.js
template.html
is possible to do something like this?
How can I fix this to create grids and display information dynamically?
Regards and thanks for your time.
EDIT: here a plunker with a sample of the problem http://plnkr.co/edit/zYtuMW4TKW053YoDY0kg?p=preview
The text was updated successfully, but these errors were encountered: