I need to check whether data is loaded or not in the Table ?
Based on this some decision , i need to perform some operation on it,
Only Angular js solution please.
html
<table ng-model='xxxx'>
<tr ng-repeat="x in obj" ng-bind='x.name'>---</tr>
<table>
Angular snippet:
$scope.$watch('xxxx', function (val) {
console.log(val);
if (val !== undefined) {
collectData();
}
});
i was trying to place one ng-model and finding its value in $watch and find the table is ready for operation or not ...!!!
but it's not working , ng-model ='xxxx' is giving undefined always.
Thanks in Advance.