Skip to content

Instantly share code, notes, and snippets.

@mseemann
Created March 26, 2022 21:25
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 mseemann/0d8dc19eb7ed7206d053cc0f25d5de84 to your computer and use it in GitHub Desktop.
Save mseemann/0d8dc19eb7ed7206d053cc0f25d5de84 to your computer and use it in GitHub Desktop.
<input [ngModel]="viewModel" (click)="inputClicked()" (focus)="inputFocused()" (blur)="inputBlurred()">
<div *ngIf="optionsVisible" class="options">
<div *ngFor="let option of options" (click)="optionClicked(option)" class="option-item"
[ngClass]="{active:option===selectedOption}">
{{option.label}}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment