Watching the model of a url input doesn't work.
not working: <input name="url" type="url" ng-model="login.url" required>
$scope.$watch('login.url', change);
working: <input name="text" type="text" ng-model="login.text" required>
$scope.$watch('login.text', change);
I'm using the Ionic-Framework with AngularJS.
Check this fiddle
It works. You have specified the type as URL type="url
, so it expects URL input. Something like http://example.com as input in that field will work. If you change the type to text type="text
it will work just like the other field.