# Category: html

## show the file names and allow user to remove the files before submitting the form [duplicate]

This question already has an answer here: How to POST binary files with AngularJS (with upload DEMO) 1 answer I am working on a web page where user need to upload files and send them along with some message.. First thing i noticed is when we want to upload a file or send an attachment(single or multiple) we need to use below line of code: <input type = “file” name=”file” file-model=”file” multiple/> With the above […]

## \$window.scrollTo scrolls to an incorrect div by ID

I want to scroll to an element div2 by id and it sort of works. The only issue is it scrolls to the very top instead of div2. This plunker shows how it works at the moment. Not sure what I’m doing wrong as I’ve specified the x and y axis correctly. http://next.plnkr.co/edit/nYlZEVKrRSMfACBy Source: AngularJS