javascript - how to prevent model from getting filtered value in angular -


i have input elements have language filters attached them. need send english language server. have this:

<select ng-model='dropdownmodel'>       <option>{{'some text' | translate}}</option> </select> 

but while submitting need submit english version , not french or other translated text. or better, need model stick 'some text' no matter filter applied. same goes other input elements.

i think can use <option value="???"> here as,

<select ng-model='dropdownmodel'>     <option value="{{ 'some text' }}">{{'some text' | translate}}</option> </select> 

if select first option dropdownmodel sets 'some text'.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -