title: ng-repeat in angularJs avoid duplicate values
body: <p>I have object like this </p>
  
  <pre><code>{
          {
            "assetId" : "560",
            "assetName" : "Testname",
            "message" : "hai",
            "timestamp" : 1452585984181
          },
           {
            "message" : "haii",
            "timestamp" : 1452585999592
          },
         {
            "assetId" : "560",
            "assetName" : "Testname",
            "message" : "heloo",
            "timestamp" : 1452586221604
          }
        }
  </code></pre>
  
  <p>show to this object i am using <code>ng-repeat</code>. My question is </p>
  
  <p>I need to show all message using <code>ng-repat</code> comes under single <code>assetName</code>. but in this object two objects have same <code>assetName</code> and <code>assetId</code>. i need to show the messages both same objects but no need to repeatably show the <code>assetName</code> in top.</p>
  
  <p>How can i only avoid the duplicate <code>assetName</code> and <code>assetId</code>.  I used</p>
  
  <pre><code>&lt;div class="container" data-ng-repeat="data in dataList | unique:'assetId'"&gt;
  </code></pre>
  
  <p>But it's completely removing the object. I need the message from all objects.</p>
  
  <p>is it possible.Please help
  This is the out put i am expecting.:</p>
  
  <p><a href="https://i.stack.imgur.com/qJ3EJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qJ3EJ.png" alt="enter image description here"></a></p>