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


#1

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


#2

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

screenSize = new ReactiveVar(Bootstrap.screenSize);

#3

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


#4

Awesome, this is exactly what I was looking for.