Import Input, TemplateRef, and ViewContainerRef. A Custom Directive in AngularJS is a user-defined directive that provides users to use desired functions to extend HTML functionality. AngularJS directives are extended HTML attributes with the prefix ng-..
By default, Angular disables native HTML form validation by adding the novalidate attribute on the enclosing