Skip to content

Instantly share code, notes, and snippets.

@aarmora
Last active September 7, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarmora/376390655758c8f4622b3fb55a6ef7ba to your computer and use it in GitHub Desktop.
Save aarmora/376390655758c8f4622b3fb55a6ef7ba to your computer and use it in GitHub Desktop.
<input
[id]="id ? id : ''"
[type]="type"
[placeholder]="placeholder ? placeholder : ''"
[attr.name]="name"
[tabIndex]="tabIndex ? tabIndex : ''"
[checked]="checked !== undefined ? checked : ''"
[required]="required"
(focus)="focus.emit($event); isFocused = true;"
(blur)="blur.emit($event); isFocused = false;"
[(ngModel)]="value"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment