I am new to angularjs i have 2 objects like the below
i have merged both the objects by using angular.merge as shown below
i want to display output as
{
name:"sam"
gender:"male"
relation:{
father:true
mother:true
}
}
how can i achieve above result


.push({relation: data});