In this video we will discuss how to validate a select element if it has a custom option like "Please Select" etc. Along the way we also discuss the difference between value and ngValue 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.
/ @aarvikitchen5572
If you use value, null is treated as a string and not as a null. Hence the required validation does not work.
If you just want the selected value as a string then use value property.
If you want the selected object from the SELECT element, then use ngValue.
Use the disabled attribute, if you do not want the user to be able to select the first default option.
The built-in required validator will only work with the SELECT element, if the default option value is null.
Text version of the video
http://csharp-video-tutorials.blogspo...
Slides
http://csharp-video-tutorials.blogspo...
Angular CRUD Tutorial
• What is Angular CLI
Angular CRUD Tutorial Text Articles & Slides
http://csharp-video-tutorials.blogspo...
All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenka...
All Dot Net and SQL Server Tutorials in Arabic
/ kudvenkatarabic
Auf dieser Seite können Sie das Online-Video Angular value vs ngvalue mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer kudvenkat 26 Februar 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 34,474 Mal angesehen und es wurde von 246 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!