here what you have to do: - add new variable to your $scope
:$scope.resultLoaded = false;
- change the post success to this:
success(function(data) {
$scope.result = makeTableFrom(data);
$scope.resultLoaded = true;
}
-in your html you use it as follows:
<div ng-if='resultLoaded'>
<table map-activity>...
</div>