Back to Browse

How to make angular custom validator reusable

26.8K views
Oct 23, 2018
4:06

In this video we will discuss how to make a custom validator reusable in Angular. Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking. https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation=1 Text version of the video https://csharp-video-tutorials.blogspot.com/2018/10/angular-reusable-custom-validator.html Slides https://csharp-video-tutorials.blogspot.com/2018/10/angular-reusable-custom-validator-slides.html Angular 6 Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhWNJaDgh0mfae_9xoQ4E_Zj Angular 6 Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2018/09/angular-6-tutorial-for-beginners.html Angular, JavaScript, jQuery, Dot Net & SQL Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All the buil-in validator functions are marked as static functions in the Validators class. This allows us to use the validator functions, without the need to create an instance of the Validators class. Along the same lines let's make our emailDomain custom validator function reusable by including it as a static function in a separate class.

Download

1 formats

Video Formats

360pmp46.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to make angular custom validator reusable | NatokHD