Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Angular Template Angular Template
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • IzeniIzeni
  • Angular TemplateAngular Template
  • Wiki
  • data store

data store · Changes

Page history
progress on data store page authored Sep 22, 2016 by Mikkel Davis's avatar Mikkel Davis
Hide whitespace changes
Inline Side-by-side
data-store.md
View page @ b6a14e3a
...@@ -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
......
Clone repository
  • angular
  • cookbook forms
  • cookbook routing
  • data store
  • gotchas
  • Home
  • modals
  • sass with bem
  • toolbox
  • typescript
  • webpack