Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy AngularJS Tutorials</title> </head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"> </script> <body ng-app=""> <p>Enter any name in input field:</p> <form name="myForm"> <input name="ngInput" ng-model="ngInput" required> </form> <p>The forms's valid state is:</p> <h1>{{myForm.$valid}}</h1> </body> </html>
www.wikitechy.com © Copyright 2016. All Rights Reserved.