There are records, there is a function "expand comment":
$scope.showText = 'Read Full Review'; $scope.showTextstatus = false; $scope.readmore = 'ReviewComment'; $scope.readmoreprofile = function() { if ($scope.showTextstatus == false) { $scope.showTextstatus = true; $scope.readmore = 'ReviewCommentread_more'; $scope.showText = 'Less Read Review'; } else { $scope.showTextstatus = false; $scope.readmore = 'ReviewComment'; $scope.showText = 'Read Full Review'; } }; <div class="ProfileReviewData" ng-repeat="review in reviews"> <p ng-click="readmoreprofile()" class="ReadFullReview orange_text"> {{showText}} </p> </div> Problem: a state common to all items review . In one place we click - opens / hides the full text of all comments. How to make each item have its own state (maximized / minimized)?
ng-show='showTextstatus'orng-if='showTextstatus'should be written somewhere. - Stepan KasyanenkoshowTextstatus, rechecked, there is no such in html. - J. Doeng-show='showText=="Less Read Review"':). Open the Elements tab in the browser console (F12 - in Chrome), and look at your blocks that open / close. - Stepan Kasyanenko