How do I pass a Squiffy attribute to a Javascript variable?
thetruespin
02 Oct 2016, 13:57Say I've got an attribute like:
@set progress = 0
And I want to take the current value and convert it into a standard JS variable via:
var myprogress = progress
What do I need to put after the =?
thetruespin
02 Oct 2016, 13:59Silly me... it's easy. You just use:
var myprogress = squiffy.get("attributename");
I'd tried this to start with but made a typo and I thought it didn't work.