title: AngularJS Update Array Items by a Given Key
body: <p>I'm using AngularJS to create a site.</p>
  
  <p>There's my array:</p>
  
  
  
  <pre><code>$scope.replyList = [
    {
      "id": "85485",
      "reply_content": "aaaaaaa",
      "reply_gender": "1",
      "reply_author": "John"
    },
    {
      "id": "85487",
      "reply_content": "bbbbbbb",
      "reply_gender": "1",
      "reply_author": "Ben"
    },
    {
      "id": "85504",
      "reply_content": "ccccccc",
      "reply_gender": "1",
      "reply_author": "Wang"
    }
  ]
  </code></pre>
  
  <p>What I want to do is update the item value by a given key <code>id</code>. </p>
  
  <p>For example, I'd like to update the content with id <code>85485</code>. How can you deal with that?</p>
  
  
  
  <pre><code>$scope.replyList[{id: 85475}].reply_content = 'dddddd'; /* failed */
  </code></pre>
  
  <p>Thank you very much.</p>