Experimental
Set the cached singleton instance for a given factory. (e.g. for testing)
All subsequent calls to $(factory) will return the given result, until manually set again, or reset via $cache.unset.
$(factory)
Set the cached singleton instance for a given factory. (e.g. for testing)
All subsequent calls to
$(factory)will return the given result, until manually set again, or reset via $cache.unset.