I have two inputs:
<label for="date-string">String value</label>
<input [formControl]="dateString" type="date" id="date-string"/>
<br>
<label for="date-object">Date object with directive help</label>
<input [formControl]="dateObject" type="date" id="date-object"/>
I want to add a div straight after an input using a directive for all inputs type 'date' and have 'formControl' directive.
The only problème is how to add a dom element after current html element (using elementRef). I've seen ppl talking about parent node, but i don't want to appendChild to the parent node (the new element will be at the very end of the node list but i need it to be straight after current input element).
Any idea?