1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

NGXMask - Add prefix to input

Discussão em 'Angular' iniciado por Tomasz Jeznach, Julho 18, 2025.

  1. I want to add prefix : 'https://' to input using ngx-mask *16.4.0. I have component using signal inputs like this:

    <input
    [mask]="mask()"
    [required]="required()"
    [prefix]="prefix()"
    />


    and use this in other as :

    mask=""
    prefix="https://"


    And ofc. it doesnt work because mask is empty. If i try added S* A* it dont allow me to write . / ? etc... I was tried to adding customPattern but its not bound with input. InstantPrefix dont exist on this version. Prefix doesnt exist in newst one...

    How i will be able to write url adress with this prefix ?

    Continue reading...

Compartilhe esta Página