I am new to angular. I have set up the following code to see if an input field has been touched. However when i type on the input field. It doesn't change. Just keeps showing false.
Not sure what I am doing wrong here. Any help would be really appreciated it.
<div ng-app='myApp' ng-form name="myForm">
<input type='text' name='address' ng-model="address" id='address'>
var app = angular.module("myApp",);
$touched in AngularJS jargon doesn't mean "was the value changed". That's
$touched in AngularJS means that the field was blurred (that is, the field isn't selected anymore).