I want get the file name from my html input tag in a modal view and save it using Angular2. Can someone help me?
You can try a more elegant option:
HTML:
Script:
updateFile(file: HTMLInputElement) { let name = file.value; }