I am making a select-box (select + options).
In the select component I have a list of option component instances :
@ContentChildren(forwardRef(() => SelectOptionComponent)) private options: QueryList<SelectOptionComponent>;
Also I know which one option is selected so I have a
private selectedOption: SelectOptionComponent;
attribute. Now I would like to display the selected option into the select-box main top frame (what remains of the select box when it's option list is closed). As I want to display any content and not only text, I would like to "copy" the option dom node and insert that into the main frame.
I tried several approaches without any success but I have the feeling that should be possible. Any clue ?
@ContentChildrento get it, but in every way, you will have to copy that instance a second time to display it (unless you move it, as proposed earlier)