It functions exactly as the Array Store described in the previous section, and also ensures that the data is persisted in the browser's local Storage, immediately or at regular intervals.
To create this kind of a Data Source, use the following code.
OData is a universal open protocol for consuming data APIs.
Regardless of the data source type, approaches to data reading and editing are the same. The most simple data layer is one that deals with in-memory arrays.In addition, the OData Context includes get() and invoke() methods used to invoke service operations, and the object Link() helper method to link entities.To create an OData Context instance, call the OData Context constructor with the required configuration object. Each sub-object of the entities configuration object defines a name and configuration settings for an OData Store within this context instance.If you pass a string value specifying a GUID to the constructor, the created Guid instance will hold the specified value.Assume that each Product entity is connected to a Category via the Product. Navigation properties are usually deferred and are not loaded automatically together with the owning entity.