Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
angular: Add service method to get locale
When querying the state from the `JsonFormsAngularService` via its `getState` method, the whole state is cloned. This could lead to performance issues with the angular material renderer set because the `NumberControlRenderer` queried the state on every change detection cycle to get the locale. Thus, the whole state was cloned for every control of these types on every change. To fix this, the `JsonFormsAngularService` now allows to query the locale directly without cloning the state * Add method `getLocale` to `JsonFormsAngularService` that does not clone the state * Use new method in `NumberControlRenderer` Signed-off-by: Lucas Koehler <lkoehler@eclipsesource.com>
- Loading branch information