The AngularJS ng-required directive is used for input and select controls to set as required field, but can also be applied to custom controls.
Syntax
Name is required