Looking for a way to pass display value formatting to an Angular component.
Here are a couple of examples:
format="'(utc, offset) location (tz)'" === '(UTC -04:00) New York (EDT)'
or
format="'(tz, offset) location'" === '(EDT -04:00) New York'
The goal is to display the value in the specified format with parentheses included. One possible approach is creating an array with the required format? Given the following string, how can I generate the corresponding array:
'(utc, offset) location (tz)' === ['(', 'utc-code', 'offset-hours', ')', 'location', '(', 'tz-code', ')'];
'(tz, offset) location' === ['(', 'tz', 'offset', ')', 'location']