angular-selectize
angular-selectize copied to clipboard
Allow Object Options
I have a couple of cases where the options I want to use are wrapped in an object, instead of an array. This line breaks it, though:
data = angular.isArray(data) ? data : [data]
Can you allow objects by changing it to:
data = angular.isArray(data) || angular.isObject(data) ? data : [data]
+1
+1
+1