Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angularjs Uncaught ReferenceError: myFunction is not defined at HTMLInputElement.onkeyup

angular.module('myApp', [])
  .controller('myCtrl', ['$scope', '$http', function($scope, $http) {
    $scope.fname = "";
    $scope.myFunction = function() {
      console.log($scope.fname)
    }
  }]);
.ucase {
  text-transform: uppercase;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.min.js"></script>
<div ng-app="myApp" ng-controller="myCtrl">
  <nb-card>
    <nb-card-header>
      Enter your name:
    </nb-card-header>
    <nb-card-body>
      <input type="text" ng-model="fname" class='ucase' ng-keyup="myFunction()">
    </nb-card-body>
  </nb-card>
</div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: AngularJS get ETag header from $http.put request 
Javascript :: AngularJs: How to interpolate an interpolated string 
Javascript :: AngularJS w/Prerender 404 error on home page 
Javascript :: call method from parent 
Javascript :: show user profile nodejs pug 
Javascript :: angularjs How do I show all indicators for carousel in an ng-repeat 
Javascript :: Porting Promise.all functionality from AngularJs to VueJs 
Javascript :: when selecting second dropdown ng-model object return null 
Javascript :: Json response reactnative fetch login data 
Javascript :: Using animateCamera in functional components in react native 
Javascript :: react-native installation error with npx react-native 
Javascript :: mutexify 
Javascript :: perl and regular expression for text extraction pdf 
Javascript :: flatten a nested json 
Javascript :: disconnect google colab runtime 
Javascript :: open 2 links with one click html jquery 
Javascript :: using parseint in javascript 
Javascript :: word array to string cryptojs 
Javascript :: phaser seeded group 
Javascript :: function listview list grud abnAlhaj 
Javascript :: counter using redux 
Javascript :: map sord elo 
Javascript :: Captalize all words first letter javascript 
Javascript :: prisma multiple relation counts 
Javascript :: true type of javascript 
Javascript :: Enqueue jquery for TypeError: $.browser is undefined issue 
Javascript :: How to Loop Through an Array with a do…while Loop in JavaScript 
Javascript :: Prevent HTTP Parameter Polution in NodeJS 
Javascript :: Top Tips for Vue 3 Development 
Javascript :: how to delete array filter in react hooks 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =