Closed AlexXanderGrib closed 1 year ago
That's an interesting approach. Do you want to make a PR for it? Payment systems used to be a enum but we switch to union type so it's easier to use in templates as input. I'd like to stick to that for now. Another comment is that split
methods create an array and therefore a heavy operations not fit for getters. As well as filter
and map
. Keep that in mind.
Which @taiga-ui/* package(s) are relevant/releated to the feature request?
addon-commerce
Description
My solution is code down below. There are it's advantages
What to do:
Make
TuiPaymentSystem
enum-alike for better readability and add more payment systems:Change detection algorithm: