Stuck in a situation where i tried different solution but didn't get any workaround what i want is:
$scope.list={"A":[],"B":[],"C":[],"D":[]}
this type of objects of array but its should be dynamic for example when i click button this function will be called:
AppendToList(data)
{
$scope.list.push("E":data)//error
}
i want this E to be dynamic when ever i click the next object should be created automatically if I click next time it should become {"A":[],"B":[],"C":[],"D":[],"E":[data]}
$scope.list["E"] = datalistisn't an array so you can'tpushitems into it. Also note that the order of the items isn't guaranteed.