Angular SPA Framework - ViewCache - Methods
This section describes the methods used to manipulate the application's view cache.
getView(key)
Obtains a viewInfo object from the cache by the specified key.
A key under which the requested viewInfo object is stored within the view cache.
A requested viewInfo object.
hasView(key)
Checks whether or not a viewInfo object is contained in the view cache under the specified key.
The key of the requested viewInfo object.
true if the requested viewInfo object is found in the view cache.
off(eventName)
Detaches all event handlers from a single event.
The event's name.
The object for which this method is called.
off(eventName, eventHandler)
Detaches a particular event handler from a single event.
The object for which this method is called.
on(eventName, eventHandler)
Subscribes to an event.
The object for which this method is called.
on(events)
Subscribes to events.
Events with their handlers: { "eventName1": handler1, "eventName2": handler2, ...}
The object for which this method is called.
removeView(key)
Removes a viewInfo object from the cache by the specified key.
A key under which the viewInfo object to be removed is stored within the view cache.
The viewInfo object that has been removed.
This method fires the viewRemoved event after the viewInfo object has been removed.
If you have technical questions, please create a support ticket in the DevExpress Support Center.