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
Post a Comment