The AngularJS input types are HTML input element control and used togather with ng-model directive. AngularJS input type Date can be decorate with various AngularJS arguments like name, name,ng-min,ng-max,required,ng-required and ng-change.
Note: Many modern browsers do not yet support this input type.
AngularJS Input Type Date Syntax
Here is a list of AngularJS Input Type Date Arguments.
Directives | Description |
---|---|
ng-model | AngularJS expression to bind the data. |
name (optional) | Name of the control input control. |
min (optional) | The valid date string (yyyy-MM-dd). This is used to set minimum date validation. |
max (optional) | The valid date string (yyyy-MM-dd). This is used to set maximun date validation. |
ng-min (optional) | AngularJS expression sets the min validation constraint to the Date . |
ng-max (optional) | AngularJS expression sets the max validation constraint to the Date . |
required (optional) | Validate input type date is required. |
ng-required (optional) | AngularJS expression ngRequired expression evaluates to true. |
ng-change (optional) | AngularJS expression to be executed when input value changes. |
Above example will produce following output
See Live Example