/ / Come posso usare ui-select in ui-bootstrap modale mentre utilizzo Angular Formly? - angularjs, formalmente angolare

Come posso usare ui-select in ui-bootstrap modal mentre usi Angular Formly? - angularjs, angular-formly

Come posso usare ui-select in ui-bootstrap modale mentre utilizzo Angular Formly?

http://angular-formly.com/#/example/integrations/ui-bootstrap-modal -> questo link contiene l'esempio, ma qui hanno preso solo i campi di input.

risposte:

0 per risposta № 1

Lo uso nel mio codice

var modelInstalnce = $uibModal.open({
templateUrl: "...",
scope: $scope,
controller: function($scope,$uibModalInstance){
$scope.selectedValue = selectedValue;
function selectedValue($search){
$select.selected = $search.value;
}
}

html

on-select="selectedValue($select.selected);"