Skip to content

How to automatically add an asterisk (*) for required fields in the reactive form using Angular

License

Notifications You must be signed in to change notification settings

cdgstudio/label-with-asterisk

Repository files navigation

How to automatically add an asterisk (*) for required fields in the reactive form using Angular

This article describes a method for automatically adding an asterisk (*) to required fields in a reactive form using Angular. It uses the built-in validators in Angular to determine if a field is required and then uses a component to add the asterisk to the label of the corresponding form field.

About

How to automatically add an asterisk (*) for required fields in the reactive form using Angular

Topics

Resources

License

Stars

Watchers

Forks