I'm getting this dynamic response from the server . and here i want to push my mapD data into mapData (i.e Dynamic Data);
[
{
Name: "Aura",
OrderState: "2",
latitude: "28.197619999999997",
longitude: "65.24778333333334"
}
]
I store the above dynamic response as this.mapData = res.Data .
I have a static data too e.g.
public mapD:any=[{
Name: "mad",
OrderState: "2",
latitude: "39.6868",
longitude: "83.2185"
}]
I want this above static object to contain the dynamic object so that I will get 2 objects in total - I'm using push method but unable to get the data using
this.mapD.push(this.mapData)
and im using mapData for saving the response and looping it in the template
I will get 2 objects in total- you mean two objects in the mapD array?