(value: string | Template, context?: any)
| 106 | } |
| 107 | |
| 108 | static parse(value: string | Template, context?: any): View { |
| 109 | if (typeof value === 'function') { |
| 110 | return (<Template>value)(); |
| 111 | } else { |
| 112 | const exports = context ? getExports(context) : undefined; |
| 113 | const componentModule = parseInternal(value, exports); |
| 114 | |
| 115 | return componentModule && componentModule.component; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Loads component from module with context |
nothing calls this directly
no test coverage detected