ui-select allows you to bind the entire item to ng-model. e.g. You have an array of countries:
[{name: "Australia", code: "AUS"}, {name: "United Kingdom", code: "UK"}]
You want to bind the selected country to your model - not so you have have either the name or the code, but the whole object so you may have
$scope.selectedCountry = {name: "United Kingdom", code: "UK"}
With the angular-schema-form-dynamic-select add on, you are forced to return your titleMap in name/value format. Whilst the map function allows you to pick a single property from each item to be your $$value$$, it would be nice to be able to select the whole item.
ui-select allows you to bind the entire item to ng-model. e.g. You have an array of countries:
[{name: "Australia", code: "AUS"}, {name: "United Kingdom", code: "UK"}]You want to bind the selected country to your model - not so you have have either the name or the code, but the whole object so you may have
$scope.selectedCountry = {name: "United Kingdom", code: "UK"}With the angular-schema-form-dynamic-select add on, you are forced to return your titleMap in name/value format. Whilst the map function allows you to pick a single property from each item to be your$$value$$ , it would be nice to be able to select the whole item.