Is there a way to programmatically toggle between displaying and hiding attributes by clicking a button? For example, I have a card that includes both a map and a list view. Normally, these are shown side by side. However, on mobile devices, the list view's flex increases to 100, causing the map to be hidden. I want to give users the option to switch between these two views. How can I achieve this?
Here is an example of my code:
<md-card flex-gt-xs="40" flex-xs="100">
<list></list>
</md-card>
<md-button>Toggle Views</md-button>
<md-card flex="60" hide-xs show-gt-xs >
<leaflet height="40vh" ></leaflet>
</md-card>
Update:
Summary
I am looking to create two columns that can be switched between on mobile devices and displayed side by side on larger screens.