This blog represents a list of recommendations for capturing user inputs from a form in an Angular app.
<input #fullname (keyup)="setName(fullname.value)"/>
The following represents usage of $event object (not recommended):
<input (keyup)="setName($event)"/>
<input #fullname (keyup)="setName(fullname.value)"/>
<input #fullname (keyup)="setName(fullname.value); fullname='' "/>
In case you are developing web apps using Spring and Angular, check out my book, Building web apps with Spring 5 and Angular. Grab your ebook today and get started.
Last updated: 13th May, 2024 Whether you are a researcher, data analyst, or data scientist,…
Last updated: 12th May, 2024 Data lakehouses are a relatively new concept in the data…
Last updated: 12th May 2024 In this blog, we get an overview of the machine…
Last updated: 12th May, 2024 In the world of generative AI models, autoencoders (AE) and…
Last updated: 7th May, 2024 Linear regression is a popular statistical method used to model…
Last updated: 3rd May, 2024 Have you ever wondered why some machine learning models perform…