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

168
Views
How to call function after change input

Using Angular 1.6

I´m trying to call some function like $scope.myFunction after change inputs

My code look like this

<md-input-container class="col-sm-12 md-block no-left-padding">
                        <label>Name</label>
                        <input name="name" ng-model="name" onfocusout="myFunction()">
</md-input-container>

I´m getting this error when I unfocus the input

Uncaught ReferenceError: myFunction is not defined
    at HTMLInputElement.onfocusout
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

onfocusout behaves similar to onclick - it is standard JavaScript callbacks. To call function from scope/controller you need ng-*, probably you will be happy with ng-blur

about 4 years ago · Santiago Trujillo Report
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!