umco / umbraco-vorto

1:1 multilingual property editor wrapper for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/vorto
MIT License
44 stars 42 forks source link

$rootScope.$broadcast("reSync"); reload the complete model on all vortos #93

Closed cmwalolo closed 7 years ago

cmwalolo commented 7 years ago

Annoying... As for now I have a plugin which some directive, that is constantly reactivated as the model is completely reloaded when we are switching the current language ? As all controls are anyway loaded visible or not visible, I don't see really the point of it ? Maybe this could be optimized some how ?

cmwalolo commented 7 years ago

okay... I didn't know that the Vorto was only loading the active language... So it unloads and reloads at each language change, which causes some directives to be recreated. (and in my case there is a focus directive which means that trigger a focus to the first control on each language change)