Q: angular multidimensional array live update I have an endpoint that has 5 users in a obj with 5 arrays. every 5 data changes for a few properties. I want to get the dynamic property, and push it to an array for each user. How can i do this? I need each user to have their own dynamic array.
watchMe = [{user: 1 hr: 10},  {user: 2 hr: 20}, {user: 3 hr: 30}];

    updateMe=[];

    function getLive(){
    angular.forEach(watchMe, function(value, key){

     updateMe.push(value.hr);
    console.log (updateMe)
        })
    };
    $interval(getLive, 5000);


A: I think using a utility library like lodash could provide you with what you're after.
Namely: whenever the interval hits you can use _.filter to get you the objects containing the dynamically added property - or just _.map() through them and pull the property (if it exists).
Disclaimer: I would have preferred to add this feedback as a comment but I do not have the rep yet
