vue-luxon icon indicating copy to clipboard operation
vue-luxon copied to clipboard

Error when using filter on Luxon object

Open AAllport opened this issue 4 years ago • 0 comments

When using the filter on a luxon object, the error here gets triggered https://github.com/casbloem/vue-luxon/blob/1c59c7002dc6e48aa93ba47987bd4f79055a1112/src/main.js#L9

Take the following code: {{ dates.selected | luxon }} where dates.selected is an instance of DateTime. An error is thrown since DateTime does not have .value

Please can we consider adding support for adding the filter to instances of DateTime, as this feels like a fairly reasonable use-case in a strongly typed VueJs application?

AAllport avatar Dec 09 '20 16:12 AAllport