Beyond the methods provided by ElementComponent and CollectionComponent, Clockvine also decorates all indexes and elements returned by APIs before they're returned or stored in Vuex. It adds a handful of non-enumerable methods and properties. Because they're non-enumerable, they won't show up when interating and only occasionally show within Vue's dev tools.
These can be useful for snippets like this:
<input type="text" v-model="someUser.name" />
<button @click="someUser.$update">Save</button>
Equivalent to dispatching an index action to this indexes ApiModule. $mustIndex
is the same except it sets the flag to tell the ApiModule to bypass the cache.
Equivalent to dispatching a show action to this elements ApiModule. $mustShow
is the same except it sets the flag to tell the ApiModule to bypass the cache.
Store this element as a new element.
Update this element back to the API.
Delete this element via the API.
A boolean that specifies whether this is an existing element.
An object that contains the parameters (typically URL parameters) that were associated with this element when it was retrieved.