Usage
- Typescript Import Format
- //To import this class, use the format below.
 import {sync} from "ojs/ojmodel";
For additional information visit:
Constructor
new sync(method, model, options) : {Object}
        Master server access method for all models and collections.  Replace oj.sync with a new implementation
to customize all Model and Collection server interactions
        
    
    
    
    
    
    
    
    
    
    
        Parameters:
| Name | Type | Argument | Description | 
|---|---|---|---|
| method | string | "create", "read", "update", "patch", or "delete" | |
| model | Model | Collection | Model (or Collection to be read) to be read/saved/deleted/created | |
| options | Object | <optional> | to control sync success: called if sync succeeds error: called if sync fails others are passed to jQuery Options that would normally be passed to a customURL callback are also included | 
Returns:
xhr object
- Type
- Object