... | @@ -5,7 +5,7 @@ We've made an abstract data model class, which individual models extend. Hopeful |
... | @@ -5,7 +5,7 @@ We've made an abstract data model class, which individual models extend. Hopeful |
|
* `update`: for PUTing one object at a time. (implements jsdata update method)
|
|
* `update`: for PUTing one object at a time. (implements jsdata update method)
|
|
* `destroy`: for DELETEing one object at a tiem. (implements jsdata destroy method)
|
|
* `destroy`: for DELETEing one object at a tiem. (implements jsdata destroy method)
|
|
|
|
|
|
So, if you look at the configuration of the UserService, it extends AbscractModelService. And in a component, we inject it as `User: UserService`, and use it like so: `this.User.read(id).subscribe()`
|
|
So, if you look at the configuration of the UserService, it extends AbscractModelService. And in a component, we inject it into the constructor as `User: UserService`, and go to town like so: `this.User.read(id).subscribe()`
|
|
|
|
|
|
## JSData Models (Mappers)
|
|
## JSData Models (Mappers)
|
|
* extend Record
|
|
* extend Record
|
... | | ... | |