I have a select dropdown in HTML that has strings for display and numbers as its value. Each number is the ID of a resource that can be queries via a REST HTTP URL.
How do I bind the changing selection state of a select to a property on an Angular controller? Is it correct to use ng-change? What's the most Angularian and declarative way of doing this?
Assume for now that the select is scoped to the same controller as the function that makes the REST request.