registerBrick()
function registerBrick(
tag,
brick, ...
args): void;
Static function that must be called for every brick used in an application. It registers the brick code in the registry with the specified tag and return the Entry for that brick.
Parameters
| Parameter | Type | Description |
|---|---|---|
tag | string | the brick unique id |
brick | () => Brick | the brick class |
...args | any | Extra arguments |
Returns
void