Having trouble adding new nested objects. Keep receiving the error message
cannot read property push of undefined
on line 3.
What could be causing this issue? Is there a better way to accomplish this?
$scope.item.deliverables[0].steps[0].versions = [];
$scope.item.deliverables[0].steps[0].versions.push({assets:[{url:'aaa'}]})
$scope.item.deliverables[0].steps[0].versions.assets.push({url:'bbb'})