BETA
My accountGet started
Jun 082017
Total.js Platform

Flow: How to read a value from some Flow instance?

This blog post describes an approach on reading a value from an instance of Flow component in Total.js controller.

Flow: How to read a value from an instance of Flow component?

Total.js Flow is really great tool and this tutorial shows you how you can get an instance of component from Total.js Flow directly in a controller.

Follow these steps:

  • create your own flow with analytics component
  • double-click on analytics component and type a reference to mystats and press save (as the picture below)

Analytics settings

Then create a controller controllers/default.js:

Where can I read all public methods from Flow components?

Another helpful FLOW methods