(id: string)
| 33 | * @publicApi |
| 34 | */ |
| 35 | export function getNgModuleById<T>(id: string): Type<T> { |
| 36 | const type = getRegisteredNgModuleType(id); |
| 37 | if (!type) throw noModuleError(id); |
| 38 | return type; |
| 39 | } |
| 40 | |
| 41 | function noModuleError(id: string): Error { |
| 42 | return new RuntimeError( |
no test coverage detected
searching dependent graphs…