Lifecycle Management

Addon contains tools which allows you to easily create models that manages lifecycle of document and query observers in the scope of routes and components.

import {
  route,
  model,
  models,
  observed,
  observerFor,
  resolveObservers
} from 'ember-cli-zuglet/lifecycle';

Modules

  • Route – define route models
  • Model – define models in components and nsested models
  • Models – define array of models based on another array (query.content for example)
  • Observed – automatically observe a document or query