Friday, September 29, 2017

UI-SELECT does not send data through

I am trying to send data from through but it does not work.
On the other hand, it works with .

Whichmeans,

<input type = "text" ng-model = "customer.selected"/>

is working but not,

<ui-select ng-model="customer.selected" theme="bootstrap">
  <ui-select-match placeholder=""></ui-select-match>
  <ui-select-choices repeat="customer in customers | filter: $select.search">
    <div ng-bind-html="customer.customer_company_name | highlight: $select.search"></div>
  </ui-select-choices>
</ui-select>

I have the controller.js as below which works fine.

$http.post("../crud/projects_insert.php", {
        data_to_go : $scope.customer.selected
})

INPUT works with the controller, but not the data from UI-SELECT.

Does anyone have experienced same issue like this? Maybe I am missing something with UI-SELECT.

The bold written is my question. Please advise me to solve this problem.

Thank you in advance!

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/09/29/ui-select-does-not-send-data-through-form/
via @lzomedia #developer #freelance #web

No comments:

Post a Comment