john-oc / acute-select

Dropdown List Component for AngularJS - NO LONGER UNDER ACTIVE DEVELOPMENT
MIT License
123 stars 83 forks source link

Added value field #42

Open shotap opened 9 years ago

shotap commented 9 years ago

now ac-options supports value fields like ac-options="l.name as l.id in loadData()"

shotap commented 9 years ago

??!?

john-oc commented 9 years ago

@shotap - apologies for the delay on this one. The day-job has been a bit hectic, but try to will test and merge this soon.

john-oc commented 9 years ago

Having a look at this now, but just wondering what these lines are for?

                $scope.initialSelection = angular.copy($scope.model);

                if (!isNaN($scope.initialSelection))
                    $scope.initialSelection = $scope.initialSelection * 1;

John

shotap commented 9 years ago

It because

'1' !=== 1