How can I set up a reactive variable that changes with Bootstrap screen size?

Could I re-actively set a session var to match Bootstrap screen sizes? ie: Session.set('screenSize', 'sm'), only have it be set automatically.

I recommend using ReactiveVar (optional 1st party package)
http://docs.meteor.com/#/full/reactivevar_pkg

screenSize = new ReactiveVar(Bootstrap.screenSize);

https://atmospherejs.com/gadicohen/reactive-window

2 Likes

Awesome, this is exactly what I was looking for.