Having recently started working with Angular2 / TS / ES6, I am struggling to find a solution to my issue.
I have a select element with dynamically rendered options using ngFor from an array. These options are meant for selecting attributes for a product. Once an option is selected, it is added to another array that stores the selected product attributes. I want the selected option to be removed from the DOM after selection to avoid cluttering the user interface. Disabling the option is one approach, but I prefer removing it altogether.
Any assistance would be much appreciated. I am finding it difficult to manipulate the DOM in Angular 2+.