Provides form data binding and validation of control inputs in AngularJS Form and control provide validation services so that the user can be notified of invalid input before submitting a form.
The AngularJS directive provides a set of attributes that can be used in place of regular HTML form elements, such as input, select, and form.
These directive attribute conditions are available when the input element does not have a type attribute or when the type attribute is a URL, email, text, or number.
A form is a set of controls for the purpose of collecting related controls. It is a collection of input controls such as select, choose, it can be a number of ways for the user to enter data.
When you’re working on a web app you’ll want to handle these a bit, and if so, you should be well equipped to use the right tools for naukari. With AngularJS, those tools include Should include comprehensive support for forms, input and verification.
Example
<!DOCTYPE html> <html lang="en"> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <body> <div ng-app="myApp" ng-controller="formCtrl"> <form> First Name: <input type="text" ng-model="firstname"> </form> </div> <script> var app = angular.module('myApp', []); app.controller('formCtrl', function($scope) { $scope.firstname = "Gargi"; }); </script> </body> </html>