Hi
I was wondering if we’ve got anything that allows selective loading based on breakpoints in Ionic2?
I’ve got a request to only show a carousel for larger screens as it’s presentationally a nice-to-have, yet not essential to function.
I’m not opposed to writing a component to handle this via ngContent slots, but i havent found the way responsive-sm on the grid gets it’s knowledge of the breakpoint (i’m seriously hoping it’s from an observable).
Okay cool. As far as I know, responsive-sm is just a css class. Unless there’s a directive for it out there that I haven’t seen. In fact I thought it was an Ionic 1 only css class. Let me know if I’m not following something there, but otherwise I think this is your best bet.