Photo upload component

Create a new controller app/members/photo-editor.component.ts. Register the component declaration in app.modules.ts.

Add an Input prop to store the photos.

@Input() photos: Photo[];

Open the html template and create a simple grid system. For each photo add two buttons one to set the main photo and the other to delete the image.

<div class="row">
  <div class="col-sm-2" *ngFor="let photo of photos">
    <img src="{{photo.url}}" alt="" class="thumbnail">
    <div class="text-center">
      <button class="btn btn-xs">Main</button>
      <button class="btn btn-xs btn-danger"><i class="fa fa-trash-o"></i></button>

Edit the component css

img.thumbnail {
    width: 100px;
    height: 100px;
    margin-bottom: 2px;

Open member-edit.component.html scroll to the placeholder for the photo gallery and add the new component.

<tab heading="Photos">
  <app-photo-editor [photos]=""></app-photo-editor>

Test the application.