I have developed an Ionic Multilingual App that includes a select feature. Within this select, choosing a specific option disables certain page elements. However, I am facing an issue where one of the elements needs to change its text based on the selected option and translation.
SELECTED OPTION: A ->
{{"1ST_TERM" | translate}}
SELECTED OPTION: B ->
{{"2ND_TERM" | translate}}
The code snippet for the select looks like this:
<select id="select"
ng-model="selOption"
ng-change="selectUpdate(selOption)">
<option value="A">SICLANO</option>
<option value="B">BELTRANO</option>
</select>
<p id="text">CORRECT TRANSLATED TERM</p>
$scope.selectUpdate= function(selOption){
switch (selOption){
case 'A':
//CHANGE #text TO TRANSLATED TERM 1ST_TERM
case 'B':
//CHANGE #text TO TRANSLATED TERM 2ND_TERM
};
};
Any assistance with resolving this issue would be greatly appreciated!