In my angular project, I have a select element with an option. for option, I used ng-repeat for looping purposes. so in the option, I have four different options. and I have four different boxes. if I select any option based on that those boxes will hide and show. how to do this? anyone please help me to fix this.
This is my HTML code:
<select select2 id="environment" name="environment"
ng-model='filter.environment' data-live-search="true"
<option ng-repeat="(key,value) in authorizationtype" value="{{key}}"
ng-bind="value"></option>
</select>
HTML box codes:
<div class="boxone"></div>
<div class="boxtwo"></div>
<div class="boxthree"></div>
<div class="boxfour"></div>
This is my js code:
AUTHORIZATION_TYPES = {
1 : "None",
2 : "Basic",
3 : "Bearer",
};