Hey there,
there is a good example in the angularjs documentation about the input field (
link).
I copied a very simple example and it worked out of the box:
<html>
<head>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js">
</script>
</head>
<body ng-app>
<form name="myForm">
<label>
User name:
<input type="text" name="userName" data-ng-model="user.name" required>
</label>
<div role="alert">
<span class="error" ng-show="myForm.userName.$error.required">
Required!
</span>
</div>
</form>
</body>
</html>
Please let me know, if this helps.
P.S.: Formatting your code helps ;)