Context
Data Down, Actions Up (DDAU) is the fundamental pattern in EmberJSEmberJS
Ember Tools
Glint
Typechecker for Ember templates (Components, Helpers and Modifiers) similar to tsc in TypeScript. It specially oriented to Glimmer components in TypeScript, but it can work ... framework.
- Data is fetched in parent components (ideally, in Routers or Controllers) and the data is passed to the child components throught their attributes.
- Actions are handled in child components but sent back to parent elements if they require to modify the current state of the application. This way, there's a single source of truth of the state of the WebApp.
In different frameworks, this pattern is called one-way-data flow.