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, reset via $cache.unset, or cleared by newRoot().
$(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, reset via $cache.unset, or cleared by newRoot().