I have three arrays and I want to push in array dynamically using $parse
For eg
$scope.image = [];
type = image;
var test = $parse(type);
test.assign($scope , push({id : 1}));
can I do something to make array push dynamic depending on type value or there is another way??
type = imagesupposed to accomplish…?$scope[type].push(..)will do just fine.$parsereally only becomes interesting if you have more complex paths (e.g.foo.bar.baz).