angular 2 click input type file code example
Example: angular button open file input
<input type="file" accept="image/*" #file>
<button (click)="file.click()">Upload file</button>
<input type="file" accept="image/*" #file>
<button (click)="file.click()">Upload file</button>