AngularJS and form validation

Complete overview on how validate a form with native and custom directives of AngularJS.

HTML

<html>
<body>
<h2>JavaScript Array.forEach()</h2>
<p>Calls a function once for each array element.</p>
<p id="demo"></p>
<script>
var numbers1 = [4, 9, 16, 25];
var numbers2 = numbers1.map(myFunction);
document.getElementById("demo").innerHTML = numbers2;
function myFunction(value, index, array) {
return value  *  8 + 6 ;
}
</script>
</body>
</html>