Function undo

  • Returns an undo action object for an NgUndo reducer action.

    Function

    Name

    undo

    Example

    @Dispatch
    public undo() {
    return undo('test');
    // Returns { type: '&_NG-UNDO', payload: { type: 'UNDO', propertyName: 'test' } }
    }

    Parameters

    • propertyName: string

      The propertyName used to identify actions related to the NgUndo reducer.

    Returns any

    An action object with a type and payload property for undoing a property state change.

Generated using TypeDoc