Skip to content

Instantly share code, notes, and snippets.

@lorenzojkrl
Created April 21, 2022 09:29
Show Gist options
  • Save lorenzojkrl/19d186b7da2e3a55d5e721c5a05c2128 to your computer and use it in GitHub Desktop.
Save lorenzojkrl/19d186b7da2e3a55d5e721c5a05c2128 to your computer and use it in GitHub Desktop.
Generic form element in Angular template driven forms
<div>
<label for="email">Email</label>
<input
type="email"
id="email"
name="email"
[(ngModel)]="email"
/>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment