I have verified data in the database, it is getting updated, but DOM is not getting updated.
<ul>
<li ng-repeat="aReview in reviewList">
....
....
</li>
</ul>
<script>
if(globalMethods.stringValidation($scope.reviewList))
{
$scope.reviewList.push(optData);
}
else
{
$scope.reviewList=[];
$scope.reviewList.push(optData);
}
</script>
If you are using a third party libraries to manipulate your data, angular may not be aware of changes to data. To get angular to recheck things, you have to mannually invoke $scope.$apply() after manipulating your data
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.