(name: N)
| 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); |
| 66 | if (templatRef$) { |
| 67 | const sub = templatRef$.subscribe((r) => (ref = r)); |
| 68 | sub.unsubscribe(); |
| 69 | } |
| 70 | return ref; |
| 71 | }; |
| 72 | |
| 73 | return { |
| 74 | add(name: N, templateRef: TemplateRef<C>): void { |
no test coverage detected