The state dependencies configuration. This defines a
tear-up process using state discovery for all the pages
that are in this module. This property is optional and only
relevant if any state discovery must be run before pages
are rendered.
Note that for pages specific state discovery, it is best
to use the {@link Schema} interface's dependencies
property.
Also note that setting the State.waitFor property
on Module instances' dependencies
enables the tear-up
logic for the entire module instead of for individual
pages or components. This is useful in cases where more
than one page or card in the same module need one identical
dataset or whenever data discovery must happen pre-render.
The module identifier, this is a kebab-case formatted
name, e.g. "leaderboard-statistics". This should be
unique across one frontend instance.
Note that changing a module identifier on a production
environment is not recommended due to the URL change
that is going to happen.
This property defines whether the router configuration must
use a namespace prefix, i.e. the module identifier, in the
URL for accessing specific pages.
Note that if you are using a namespaced module, all pages
must be accessed using the module identifier prefix.
The vue-router paths definition, e.g. "/game-leaderboard".
This should define unique routes for the module instance.
It is also possible to use variables that will be mapped
using vue-router
internally.
Note that if you are using dynamic path mappings (variables),
it is important that you also define validator instances
and transformers in case of necessary transformations.
Generated using TypeDoc
Module
This interface represents individual dynamic modules as loaded by the frontend. Per each module we then define page details, components and state discoveries that are specific to a module.
Typically, module configuration files will have either of a
.json
or.jsonc
extension, depending on whether you like to document/comment module definition files or not.Using the Module interface
Properties
The module identifier, this is a kebab-case formatted name, e.g. "game-leaderboard". (Required)
The state dependencies configuration. This defines a tear-up process using state discovery for all the pages that are in this module. (Optional)
This property defines whether the router configuration must use a namespace prefix, i.e. the module identifier, in the URL for accessing specific pages.
The page schema(s) that are built to present the module at a end-user level, i.e. Page. (Required)
v0.1.0