Below is the HTML code I am working on:
<select ng-model='selectedtype' ng-options='item.tagname for item in types.name'>
<option value="">select type</option>
</select>
<p ng-show = 'selectedtype.tagname in {{primitives}}'>
<br>value of the field : <input ng-model='blockvalue' type='text' name='blockvalue'> <br>
</p>
I want to display the paragraph with the block value input only when certain types are selected.
The following array contains the types that should trigger the display:
$scope.primitives =["gco:CharacterString","Real","Integer","Decimal","Url","gco:Date","gco:DateTime","gco:Measure"];
Here is an example of the types that can be selected:
{
"tagname": "gmd:abstract",
"#text": "Abstract"
},
{
"tagname": "gco:CharacterString",
"#text": "Primitive type"
}
I understand that the current expression may not work, but I am struggling to find a solution.