The structure of the count objects do not delete anything to ensure the scope is never lost for the counts.
A refresh action is needed to ensure that once a change is made, re-calculate all count objects.
The repository view section directive must also handle this refresh behavior.
An additional structure is added so that the totals for a given namespace predicate set can be processed without any additional loops.
By utilizing the $watch on the list object in the repository view section directive, the counts will effectively refreshed as if the broadcast was directly processed.
The structure of the count objects do not delete anything to ensure the scope is never lost for the counts. A refresh action is needed to ensure that once a change is made, re-calculate all count objects. The repository view section directive must also handle this refresh behavior. An additional structure is added so that the totals for a given namespace predicate set can be processed without any additional loops.
By utilizing the $watch on the list object in the repository view section directive, the counts will effectively refreshed as if the broadcast was directly processed.