I'm working with some data that includes an array of integers (i.e. [1, 3, 6, 9, 12]) and noticed that checklist-model doesn't work with the data because it's assuming data is strings. I was able to get it to work by adding the following code to the contains, add, and remove functions:
if(!isNaN(item)) {
item = parseInt(item);
}
Any chance we could get something like this added to the directive?
I'm working with some data that includes an array of integers (i.e. [1, 3, 6, 9, 12]) and noticed that checklist-model doesn't work with the data because it's assuming data is strings. I was able to get it to work by adding the following code to the
contains
,add
, andremove
functions:Any chance we could get something like this added to the directive?