My drop-down contains a list of action ids and names of operations as shown below.
{ id: 0, name: 'Select Operation' },
{ id: 1, name: 'Operation 1' },
{ id: 2, name: 'Operation 2' },
{ id: 3, name: 'Operation 3' },
{ id: 4, name: 'Operation 4' }
Initially, a user can see 'Select Operation' option in the web application.
After selecting an operation from the drop-down list according to the operation that opens the respective operating model window, and after closing that window, the user should see "Select operation", not the previously selected operation element. Basically I'm new to Angular and not getting any idea how to achieve this. If any idea please help me to achieve this.
This is my html:
<div class="bx--row">
<div class="bx--col-md-3"></div>
<div class="bx--col-md-1">
<select id="select-menu" class="bx--text-input" required name="actionSelection" (change)="onActionChange($event)"
(dblclick)="onActionChange($event)">
<option *ngFor="let action of actions" [value]="action.id">{{action.name}}</option>
</select>
<carbon-modal [modalId]="modalid" [modalTitle]="modaltitle" [isFull]="isFull">
<div modal-body>
<div *ngIf="Operation1">
<Operation1></Operation1>
</div>
<div *ngIf="Operation2">
<Operation2></Operation2>
</div>
<div *ngIf="Operation3">
<Operation3></Operation3>
</div>
<div *ngIf="Operation4">
<Operation4></Operation4>
</div>
</div>
</carbon-modal>
</div>
</div>