Skip to content

Instantly share code, notes, and snippets.

@aarmora

aarmora/Input component

Last active Sep 7, 2016
Embed
What would you like to do?
<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
You can’t perform that action at this time.