How to print two json array in a single ngFor


#1

Hi guys I want to print two JSON array in a single ngFor

doctorfamilydob: any;
getchilddob=[];

Here is my ts

 this.http.get( this.url )
	    .map(res => res.json())
	    .subscribe(data => {
	    this.doctorfamilydob = data;
	    for(let i=0; i<this.doctorfamilydob.length;i++)
	    {
	    let chdob=this.doctorfamilydob[i]._meta_child_details;
			for(let j=0; j<chdob.length;j++)
	    	{
	    	this.getchilddob.push({
				"childname": chdob[j].child_name,
				"childdob":chdob[j].child_dob,
  				})
	    		alert(JSON.stringify(this.getchilddob))
	    	}
	    }});

I have two array 1st one is doctorfamilydob: any; and 2nd one is
getchilddob=[];

I want print both array in a single ngFor please help me out.