This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Use ViewModels instead of doing data formatting inside templates #1982
Labels
Type: Refactor
The pull request improves or enhances an existing implementation.
Milestone
View models are entities that take care of preparing a data model for usage in templates. This ensures that the data model itself is not leaked into the view and allows to abstract away all kinds of data manipulation and formatting.
These view models could then be instantiated through a factory as shown below.
To make the usage within the wallet more seamless it could be registered as a binding on the global vue instance.
These might be implemented by the Platform SDK and the wallets will be forced to use them.
The text was updated successfully, but these errors were encountered: