When extending the cart view, when any values like quantity or cart add/remove is happening and we need to update any values in the cart according to the change we can use the following code:
this.model.on('change', function(){
//here you add your code according to the requirement
}
This function will run every time an update happened in the model