Habpanel widget variables

Sometimes I use variables in my widgets, for example in “ng-init” (ng-init = “waiting = ‘N’”)
However, it happens that in some circumstances the variables do not update. In this case I create a config entry and use that instead of the variables. In this way the problem is solved, but it is not nice to have in the widget settings an item that the user must not use.
Did it happen to you?
Thank you