MCPcopy
hub / github.com/rx-angular/rx-angular / get$

Function get$

libs/cdk/template/src/lib/utils.ts:60–62  ·  view source on GitHub ↗
(name: N)

Source from the content-addressed store, hash-verified

58 const templateCache = new Map<N, Subject<TemplateRef<C>>>();
59
60 const get$ = (name: N): Observable<TemplateRef<C>> => {
61 return templateCache.get(name) || of(undefined);
62 };
63 const get = (name: N): TemplateRef<C> | undefined => {
64 let ref: TemplateRef<C>;
65 const templatRef$ = get$(name);

Callers 1

getFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected