Answer the question
In order to leave comments, you need to log in
Is there a function that is called once?
There is a select with two options that translates the page into one or another language, I wrote a JS code that saves the choice of language, however, angular only works when the selecta changes, is there a function that would immediately call translate()?
<select id="seltag" ng-change="translate()" ng-model="selectedLanguage" onchange="sessionStorage.seltag=this.selectedIndex">
<option value="en">English</option>
<option value="ru">Russian</option>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question