How to use Angular JS to get values from multi-select checkbox

I would like to create check box for the multiple file download purpose. There is a list of many files and each file has the checkbox for itself. I want to select 4 of them and press download button only once then all the names of the files checked will be send as a list to controller(Angular JS). But I don't have any idea about how to start it and how to send the list of parameter back to Angular JS controller.What I want to do is to send the list back to controller and call a multiple download method written in JAVA.

You can just use ng-model to assign the property to put the value in. It will automatically put it in an array. Here is a fiddle

And here's the code:

  <select multiple="multiple" ng-model="value"
    ng-options="option for option in ['bananas', 'rice', 'applesauce', 'toast']"></select>
  <hr/>
  value: {{value}}