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:
analyticscomponent and type a reference to
mystatsand press save (as the picture below)
Then create a controller controllers/default.js: