... | @@ -7,6 +7,8 @@ We've made an abstract data model class, which individual models extend. Hopeful |
... | @@ -7,6 +7,8 @@ We've made an abstract data model class, which individual models extend. Hopeful |
|
|
|
|
|
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).then()`
|
|
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).then()`
|
|
|
|
|
|
|
|
## JSDATA bypassCache is no more. The new keyword is force
|
|
|
|
|
|
## JSData & Models (Mappers)
|
|
## JSData & Models (Mappers)
|
|
* the DataStore is set up in one single place, `.../service/store.ts`, and only that place
|
|
* the DataStore is set up in one single place, `.../service/store.ts`, and only that place
|
|
* look to `.../models/User.model.ts` as a model for model setup
|
|
* look to `.../models/User.model.ts` as a model for model setup
|
... | | ... | |