I'm using Angular, a bootstrap admin web app to create my web application, the problem I'm facing is how to read values from angular element.
This is how the element looks like.
<ui-select ng-model="selected" theme="bootstrap" ng-change='test()'>
<ui-select-match placeholder="Select by typing client's name or number">{{$select.selected.first_name}}</ui-select-match>
<ui-select-choices ng-value='mikeee' group-by="'group'" repeat="id_number in clients_list | filter: $select.search">
<span ng-bind-html="id_number.first_name + ' - ' | highlight: $select.search"></span>
<small ng-bind-html="id_number.registration_number | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
And the test() function:
$scope.test = function()
{
var selectedValue = $.param({
client_number : $scope.selected,
});
alert(selectedValue)
}
When the value in the element changes, I get an alert box but the Client_number is empty.
Thank you.