Also, on the select control, will it automatically select the right item if i map my _id value to the value field on selectAthleteName-0 in the picture above?
Also, on the select control, will it automatically select the right item if i map my _id value to the value field on selectAthleteName-0 in the picture above?
Hello.
It's very important to understand service events order.
So this order is:
1 success
2 complete
To fix this problem you should use one type of event where you can populate select and execute the service.
Example:
pre
code
loadAthleteService.execute( {
success:function(data) {
//data is JSON response object
Code: Select all
//Add code which populate your select by data object.
loadScoreService.execute();
} }
/code
/pre