Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created June 9, 2017 14:10
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 matthieu-D/451dd22f96757fdf57812b8ab3c8c8b6 to your computer and use it in GitHub Desktop.
Save matthieu-D/451dd22f96757fdf57812b8ab3c8c8b6 to your computer and use it in GitHub Desktop.
<div *ngIf="avatarPhoto" class="avatar" [style.background-image]="'url('+ avatarPhoto +')'"></div>
<button ion-button clear (click)="selectAvatar()">Change photo</button>
<input #avatar class="avatar-input" type="file" (change)="upload($event)" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment