Skip to content

Instantly share code, notes, and snippets.

@kseniya292
Created July 11, 2017 16:40
Show Gist options
  • Save kseniya292/2cbdf1a2d18c6df6687bef237fb3216a to your computer and use it in GitHub Desktop.
Save kseniya292/2cbdf1a2d18c6df6687bef237fb3216a to your computer and use it in GitHub Desktop.
<form>
<md-input-container>
<input mdInput type="text" class="form-control"
required
name="name" #name placeholder="name">
</md-input-container>
<md-input-container>
<input mdInput type="email" class="form-control"
required
name="email" #email placeholder="email">
</md-input-container>
<md-input-container>
<input mdInput type="text" class="form-control"
required
name="message" #message placeholder="message">
</md-input-container>
<button md-raised-button class="btn btn-default" type="button" (click)="onSubmit(name.value, email.value, message.value)">Submit</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment