I have a lookup table in SQL with the values I need in the drop down list.
Starting with:
- Lookup Model
- WebApiConfig.cs in App_Start
Steps:
- Create an API controller
I'm using Entity Framework, so I right clicked on Controllers, Add, Controller. I then selected Web API 2 Controller with acitons. - Override the routing to create a different type of call
*** Great overview of Custom Routing - http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2 - Create SetLookups function in the AngularJS controller script
- Call SetLookups from AngularJS controller
- Create Select tab using ng-options to load