lorenzofox3 / Smart-Table

Code source of Smart Table module: a table/grid for Angularjs
http://lorenzofox3.github.io/smart-table-website/
1.8k stars 513 forks source link

When I debug st-table safeCopy object it returns empty array. #832

Open dmlgncn opened 6 years ago

dmlgncn commented 6 years ago

Hi all, searching of st-table does not work. So I debugged and safeObject ( source object) is empty array . Why? my html is like that:

<table st-set-filter="customFilter" st-table="permissionsData.rows" class="table-permissions" style="height: calc(100% - 5px); min-height: 350px" ng-style="{ 'width' : permissionsData.columnWidth }">
<thead>
<tr>
<th style="min-width:150px" >Category<input st-search="Category" placeholder="search for Category" class="input-sm form-control"  /></th>           
</tr></thead>
<tbody>
    <tr ng-repeat="row in permissionsData.rows">
                    <td style="min-width:150px" class="permission-row">{{row.Category}}</td>                

                </tr>
            </tbody>
        </table>
dmlgncn commented 6 years ago

my data was filling asynchronously. So I should use st-safe-src="permissionsData.rows" ı think. After debugging I realized that