- edited description
Refactor dashboard architecture to remove dashboardReady binding
Issue #879
resolved
in the very beginning, dashboardReady
was intended to convey that the dashboard had accessed it crossfilter and created all the dimensions and groups etc , as well as other datadriven artefacts, that it could provide.
In future we’ll rely on dashboard
binding to do this:
- each dashboard will have a property
public dashboard
- When the dashboard finishes its setup, instead of setting
dashboardReady
, it will setdashboard
as a refernce to itself: this.dashboard = this;
Child components can then bind like this
<child dashboard=”vm.dashboard”
The point being that when dashboard
is available, it is guaranteed to be configured. This may offer the cleanest solution to the asynnc data fetches as in schooldashboard??
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment