-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove @ngxp/store-service dependency
- Loading branch information
1 parent
57d506e
commit b21c7f6
Showing
27 changed files
with
286 additions
and
223 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
components/tasklist-angular/src/app/dataentry/state/dataentry.selectors.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
components/tasklist-angular/src/app/dataentry/state/dataentry.store-service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { dispatch, select, StoreService } from '@ngxp/store-service'; | ||
import { DataEntryState } from './dataentry.reducer'; | ||
import { dataEntries } from './dataentry.selectors'; | ||
import { Store } from '@ngrx/store'; | ||
import { loadDataEntries } from './dataentry.actions'; | ||
import { dataEntries, StateWithDataEntries } from './dataentry.selectors'; | ||
|
||
@Injectable() | ||
export class DataentryStoreService extends StoreService<DataEntryState> { | ||
export class DataentryStoreService { | ||
|
||
dataEntries$ = select(dataEntries); | ||
constructor( | ||
private store: Store<StateWithDataEntries> | ||
) { } | ||
|
||
loadDataEntries = dispatch(loadDataEntries); | ||
dataEntries$ = this.store.select(dataEntries); | ||
|
||
loadDataEntries() { | ||
this.store.dispatch(loadDataEntries()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
components/tasklist-angular/src/app/process/state/process.store-service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { dispatch, select, StoreService } from '@ngxp/store-service'; | ||
import { ProcessState } from './process.reducer'; | ||
import { startableProcesses } from './process.selectors'; | ||
import { Store } from '@ngrx/store'; | ||
import { loadStartableProcessDefinitions } from './process.actions'; | ||
import { StateWithProcesses, startableProcesses } from './process.selectors'; | ||
|
||
@Injectable() | ||
export class ProcessStoreService extends StoreService<ProcessState> { | ||
export class ProcessStoreService { | ||
|
||
startableProcesses$ = select(startableProcesses); | ||
constructor( | ||
private store: Store<StateWithProcesses> | ||
) { } | ||
|
||
loadStartableProcessDefinitions = dispatch(loadStartableProcessDefinitions); | ||
startableProcesses$ = this.store.select(startableProcesses); | ||
|
||
loadStartableProcessDefinitions() { | ||
this.store.dispatch(loadStartableProcessDefinitions()); | ||
} | ||
} |
Oops, something went wrong.