i am using bootstrap table with ng-repeat to populate the table. the issue is that i cannot get the table updated and display data.
i have written drag and drop element in my angularjs. once i drag and drop some file over it i get that information back in my controller.
this drag and drop is a custom directive.
the problem is that i am getting the file detail in my controller
$scope.getFiles = function(res)
{
$scope.fileList = res;
console.log(res);
}
In HTML
<file-drop fetch-files="getFiles"></file-drop>
where getFiles is the function getting called in the controller and returing the value.while i do console.log and dragand drop i can see Object in the console.
But when i assign this
$scope.fileList = res;
In HTML
<table class="table table-condensed" >
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Size</th>
<th>Last Modified</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="file in fileList">
<td>{{file.name}}</td>
<td>{{file.type}}</td>
<td>{{file.size}}</td>
<td>{{file.lastModified}}</td>
</tr>
</tbody>
</table>
and call this in html using ng-repeat i do not see anything. In the directive the values are [pushed in an array and previous drop info is stored unless browser is refreshed.
how can i update table in real time. My Object struct is as below
[{name: "Topic_modelling.xlsx", type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", size: 39274, lastModified: Mon Aug 03 2015 13:40:53 GMT+0530 (IST)}]