How to give '-'after every three digit in ionic input?

I want to display input value like "s4r-gr4-fs3-f34 " . How to do that?

this looks similar…