I am developing a web application with Angular 8. I would like to put spaces automatically when the user entered the number of its bank account, the spaces should be in index 3, 7 and 24. To be more concrete, when the user entered the first 3 numbers, the 4th number is automatically placed after the space created. I also attach you a screenshot of the expected result.
I have the following input :
<input type="text" formControlName="RibAutoriteAdministrative" required class="form-control" >
Thank you in advance !