I have this code in jQuery:
$("#profileImage").click(function(e) {
$("#imageUpload").click();
});
and this is the HTML:
<image id="profileImage" src="http://lorempixel.com/100/100" />
<input id="imageUpload" type="file" name="profile_photo" placeholder="Photo" required="" capture>
how can I replicate it in Angular 4?
EDIT: from the first comment i see my question is not clear.
I would like to create an "edit the profile image, if clicked on the image". this will open the "select file popup"
here is the example made with jQuery Add a Profile Picture in form in HTML and CSS
i would like to do it in angular 4
thank you