search

Home  >  Q&A  >  body text

angular.js - How to click on a certain content in the repeat without affecting other content in angularjs

Use the model to bind the content status, click on a certain content in the repeat, and then make a request to the background. After the request is successful, the status value of the content is modified, but the current result is that the content is requested. Nothing wrong, but when the page is rendered, all status values ​​also change. Although the background data only requests one... But on the page... it feels like the same image description is requested

How to modify this? Please give me some advice

我想大声告诉你我想大声告诉你2795 days ago560

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-15 17:10:30

    orderPayList[index].state_str = $scope.result.state_str

    reply
    0
  • Cancelreply