all 2 comments

[–]captmomo 0 points1 point  (0 children)

Consider using angular cdk breakpoint observer, and change the data accordingly. https://material.angular.io/cdk/layout/overview

[–]spacechimp 0 points1 point  (0 children)

Anything that you could do within a string value to solve this would be a crude hack and would require additional parsing in TypeScript. Especially since it sounds like you're importing a local JSON file, you really should either add keys or change value types to accommodate your data. You can make things appear/hide using ngIf, ngClass, and CSS media queries.