Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!