Total.js platform
Total.js platform

JavaScript platform for everyone

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

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