Function: model()
function model(name): <MC>(clazz, _context?) => MC;
Decorator that marks this class (which MUST inherit from the Model or DataModel abstract classes)
as a model.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Unique name for the model type. Note that this name must be unique for your whole application, so it is usually a good idea to use some prefix unique to your application domain. |
Returns
<MC>(clazz, _context?) => MC