Record count on Tab (Label) not being updated

Hi There,

I have a requirement where I need to show the count of records on Tab.
So I did try like below on Tab label:

Unread ({{$Model.MasterAlerts.data.length}})

This helps me het something like :

But, the count is not getting refreshed when rows are removed from model.

How to get those counts refreshed ?

It won’t update since the tab itself isn’t registed with the model. Only registered components auto update when values change.

Got it. 
Thanks Pat.


But in this case, can you help me understand how could I get this done so that it would auto update ?

Can’t do this unless you run a model aciton to a snippet to update the DOM element.

Check out this post: https://community.skuid.com/t/idea-update-of-merge-fields-in-labels-with-changes-in-the-model