Dynamically refresh side menu


I have a side menu with some variables, they populate when the side menu is loaded the first time, but when the variables are updated in the controller, it doesn’t update in the side menu, I need to automatically refresh it, how could I make this work?