@ngrx/store#props TypeScript Examples
The following examples show how to use
@ngrx/store#props.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: payload-creator.ts From svvs with MIT License | 6 votes |
/**
* payload is payload-creator function
*
*
* @description
*
* Create payload => action
*/
export function payload<P>(): ActionCreatorProps<{ payload: P }> {
return props<{ payload: P }>()
}
Example #2
Source File: app.actions.ts From wingsearch with GNU General Public License v3.0 | 6 votes |
bonusCardSearch = createAction('[App] Bonus Card Search',
props<{
bonus: string[], bonusfield: string, expansion: {
originalcore: boolean,
swiftstart: boolean,
european: boolean,
oceania: boolean
}
}>()
)
Example #3
Source File: file-explorer.actions.ts From nica-os with MIT License | 5 votes |
loadApplications = createAction('[FileExplorer] Load applications', props<{applications: Application[]}>())
Example #4
Source File: app.actions.ts From Angular-Cookbook with MIT License | 5 votes |
addItemToBucket = createAction(
'[Bucket] Add Item',
props<IFruit>()
)
Example #5
Source File: auth.actions.ts From ReCapProject-Frontend with MIT License | 5 votes |
setUserDetail = createAction(
'Set UserDetail',
props<{ userDetail: UserDetail }>()
)
Example #6
Source File: auth-api.actions.ts From router with MIT License | 5 votes |
loginSuccess = createAction(
'[Auth/API] Login Success',
props<{ user: User }>()
)
Example #7
Source File: member-api.actions.ts From dating-client with MIT License | 5 votes |
loadMembersSuccess = createAction(
'[Members/API] Load Members Success',
props<{ members: User[], pagination: Pagination }>()
)
Example #8
Source File: mdview.actions.ts From geonetwork-ui with GNU General Public License v2.0 | 5 votes |
loadFullMetadata = createAction(
'[Metadata view] Load full metadata',
props<{ uuid: string }>()
)
Example #9
Source File: app.actions.ts From wingsearch with GNU General Public License v3.0 | 5 votes |
search = createAction('[App] Search', props<{
main: string,
bonus: number[],
stats: {
habitat: {
forest: boolean,
grassland: boolean,
wetland: boolean
},
birds: boolean,
bonuses: boolean
},
expansion: {
originalcore: boolean,
swiftstart: boolean,
european: boolean,
oceania: boolean,
},
eggs: {
min: number,
max: number
},
points: {
min: number,
max: number
},
colors: {
brown: boolean,
pink: boolean,
white: boolean,
teal: boolean,
yellow: boolean
},
food: {
invertebrate: boolean,
seed: boolean,
fruit: boolean,
fish: boolean,
rodent: boolean,
nectar: boolean,
'wild (food)': boolean,
'no-food': boolean
},
nest: {
Bowl: boolean,
Cavity: boolean,
Ground: boolean,
None: boolean,
Platform: boolean,
Wild: boolean
}
}>()
)
Example #10
Source File: notification.actions.ts From ngrx-issue-tracker with MIT License | 5 votes |
changePriority = createAction(
'[Notification] Change Priority',
props<{ priority: Priority }>()
)
Example #11
Source File: global-dialog.actions.ts From nuxx with GNU Affero General Public License v3.0 | 5 votes |
ProjectNotFound = createAction(PROJECT_NOT_FOUND, props<{ message: string, _type: string }>())