Refresh template when using notifyPropertyChange


#1

How to refresh view’s template when using notifyPropertyChange ??

I’m using ember-i18n for my multilanguage app but this library does’nt support observing to observe translations set changes so i want to use notifyPropertyChange and update my view with new translation or locale. In fact i need to rerender my view or refresh template when some properties changed


#2

notifyPropertyChange won’t help because the translations in the template are not bound. Instead, you’ll need to fire this.rerender() on the view where the translations have changed, or you could also just trigger this.rerender() on the application view so that it cascades down to every view.