I am pushing an object into an array but cannot do it?
I'm doing it like this
this.passData = this.tribeForm.value;
var id = {"tribe_id": 1}
this.passData.push(id)
This is the value in the tribeForm
I also tried
var id = {tribe_id: 1}
and
this.passData.splice(0,0, id)
and
this.passData = Array.prototype.slice(id)
and
this.passData.concat(id)
but it all ends up with
TypeError: this.passData.push/splice/concat is not a function

tribeFormis not an array, it's an object. You can not push/concat/slice an object. What instead you can do isthis.passData['id']=idif (!this.passData) this.passData=[id] else this.passData.push(id). NOTE: in typescript not use var, use let or constant