Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

208
Visualizações
valuechanges does not work if you add a plus symbol before a number in a numeric input

i am trying to make my controller and one of the requirements. prohibition of entering any characters.

why is valuechanges not working if I add a plus sign in front of a number in a number input.

I track changes in my input. let's say the value of the input is 228.at the following changes valuechanges handles value changes:

-228 228- 228+ 2+28

+228 but if so. then valueChanges won't work

is there a way to track this?

this.calculatorForm.get('sendAmount').valueChanges.subscribe( newValue => {
  const test = /[^,.0-9]/.test(newValue);
})
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda