I am working with Angular 2 and typescript. I have a requirement where I only want to display the Save button if a new option is selected, and then hide the Save button after it is clicked. I'm not sure how to approach this problem. Below is the code snippet:
HTML
<select>
<option *ngFor="let option of optionArray" [value]="option">{{option}}</option>
</select>
<span class="input-group-btn">
<button class="btn btn-primary save-button" type="submit">Save</button>
</span>