I am using angular js smart table in my application. Every thing works fine during initial load. However I have a button (it is outside smart table) to refresh the data when some of the criteria changes. On button click I am calling changeView function which repopulates rowCollection data as shown below. As per my knowledge in angular js, this data change should be reflected in view (two-way data binding).
But after button click, only headers are appearing in my smart table, all the remaining data is getting removed. Can any one point me what is the flaw in my approach? getKPIModesData is retuning the required json data in correct format, there is no problem with that.
$scope.changeView = function(selectedAccount, selectedCarrierList, fromDate, toDate) {
$scope.rowCollection = DashboardsDataService.getKPIModesData(selectedAccount, selectedCarrierList, fromDate, toDate);
}