Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
How to update table as $scope.variable changes

I am trying to make Html table using ng-repeat in angularjs. I want my table to update and add new rows into it as data changes in my $scope.variable. I tried something like -

<table class="table table-striped">
                <tr>
                    <th>User Name</th>
                    <th>Audio Status</th>
                    <th>Video Status</th>
                    
                </tr>
                <tbody>
                <tr ng-repeat="d in memberData track by d.id">
                    <td>{{d.name}}</td>
                    <td>{{d.audio_muted}}</td>
                    <td>{{d.video_muted}}</td>
                </tr>
                </tbody>
            </table>

Angular Code -

$scope.onMemberListUpdate=(members)=>{
            $scope.memberData = members;
            $scope.$apply();
        }
 //Calling onMemberListUpdate() somewhere
 $scope.onMemberListUpdate(members);

Issue - When data changes in $scope.memberData it is not updating table. How can I make it update automatically without refresh

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!