title: How to push object into an array? in Angular 7
body: <p>I am pushing an object into an array but cannot do it?</p>
  
  <p>I'm doing it like this</p>
  
  <pre><code>this.passData = this.tribeForm.value;
      var id = {"tribe_id": 1}
      this.passData.push(id)
  </code></pre>
  
  <p>This is the value in the tribeForm</p>
  
  <p><a href="https://i.stack.imgur.com/8AfES.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8AfES.png" alt="enter image description here"></a></p>
  
  <p>I also tried </p>
  
  <pre><code>var id = {tribe_id: 1}
  </code></pre>
  
  <p>and </p>
  
  <pre><code>this.passData.splice(0,0, id)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>this.passData = Array.prototype.slice(id)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>this.passData.concat(id)
  </code></pre>
  
  <p>but it all ends up with </p>
  
  <pre><code>TypeError: this.passData.push/splice/concat is not a function
  </code></pre>