Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8346077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:53:25+00:00 2026-06-09T06:53:25+00:00

Is there anyway to force angular to update/recompile the variables within a binding? I’m

  • 0

Is there anyway to force angular to update/recompile the variables within a binding? I’m having an issue when I set my array (which is defined as a for loop within my HTML) equal to [] and it doesn’t pick up on it. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:53:28+00:00Added an answer on June 9, 2026 at 6:53 am

    One workaround is to make sure you work with the same array reference. I’ve been doing it like this whenever I want to update all of the elements to a bound array:

    myArray.length = 0;
    angular.forEach(newArray, function(item){
       myArray.push(item);
    })
    
    // Note: try without this line first as it isn't always necessary
    $scope.$digest();
    

    Using myArray.length = 0 clears out the array retaining the reference to the array see this post for more info.

    You can also use the usual splice and unshift to remove and add items to the beginning of the array respectively.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway to force Internet Explorer to prompt for download of XML files
Is there anyway to force XAML to completely redraw all of its elements and
I'm wondering is there anyway I can force popup.html to close?
Using Delphi 7, is there anyway to force inputbox to allow only numbers entry
Is there anyway to force a TSpeedButton to be redrawn flat? When using a
Is there anyway to force a mouse click using C++ outside of my application?
Is there anyway to force slf4j to use specific logging provider (logback in my
Hi I'm wondering if there's anyway to force a user to save a file
Is there anyway to force a constraints for a generic definition to implement a
Is there anyway in a BizTalk map to force destination elements to be created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.