Move everything to models and services #17
|
@ -18,6 +18,7 @@ A service takes (in most cases) a model and returns one.
|
|||
* [Models](#models)
|
||||
* [Default Values](#default-values)
|
||||
* [Constructor](#constructor)
|
||||
* [Access Model Data](#access-to-the-data)
|
||||
|
||||
## Services
|
||||
|
||||
|
@ -168,3 +169,8 @@ or parsing the contents of a child-array into a model.
|
|||
|
||||
If the model does nothing like this, you don't need to define a constructor at all.
|
||||
The parent will handle it all.
|
||||
|
||||
#### Access to the data
|
||||
|
||||
After initializing a model, it is possible to access all properties via `model.property`.
|
||||
To make sure the property actually exists, provide it as a default.
|
||||
|
|
Reference in New Issue
Block a user