I would like my application to have an area of the screen that tracks activity.
I created the following:
$scope.activity = [];
What I am thinking of is that when something starts I will push onto this array like this:
$scope.activity.push("Loading content 1");
$scope.activity.push("Loading content 2");
$scope.activity.push("Loading content 3");
$scope.activity.push("Loading content 4");
I can then have an area of my screen that shows what is happening with an ng-repeat that shows everything in the array:
<div ng-repeat="row in activity">
{{ row }}
<div>
My problem is I am not sure how to remove the items from the array once the activities have completed. Can someone give me a suggestion as to how I could do this. What I really need is some kind of pull function where I can specify the name of what I pushed and have it removed. Something like:
$scope.activity.pull("Loading content 4");
Also I need another function such as:
$scope.activity.update("Loading content 4", status);
I'm looking for a solution that does not use jQuery, or underscore. Myusers are IE9 and above.