### File

`src/app/user/actions/user.actions.ts`

### Methods

getUserOrders
`getUserOrders()`
Defined in src/app/user/actions/user.actions.ts:8
Returns: `Action`

getUserOrdersSuccess
`getUserOrdersSuccess(orders: Order[])`
Defined in src/app/user/actions/user.actions.ts:12
Returns: `Action`

### Properties

Static GET_USER_ORDERS
`GET_USER_ORDERS: `string``
Default value: `GET_USER_ORDERS`
Defined in src/app/user/actions/user.actions.ts:5

Static GET_USER_ORDERS_SUCCESS
`GET_USER_ORDERS_SUCCESS: `string``
Default value: `GET_USER_ORDERS_SUCCESS`
Defined in src/app/user/actions/user.actions.ts:6

    import { Action } from '@ngrx/store';
    import { Order } from '../../core/models/order';

    export class UserActions {
      static GET_USER_ORDERS = 'GET_USER_ORDERS';
      static GET_USER_ORDERS_SUCCESS = 'GET_USER_ORDERS_SUCCESS';

      getUserOrders(): Action {
        return { type: UserActions.GET_USER_ORDERS };
      }

      getUserOrdersSuccess(orders: Order[]): Action {
        return { type: UserActions.GET_USER_ORDERS_SUCCESS, payload: orders };
      }
    }

# results matching ""

# No results matching ""