(
viewContainer: ViewContainerRef,
templateRef: TemplateRef<Object>,
@Optional() @Host() private ngSwitch: NgSwitch,
)
| 214 | @Input() ngSwitchCase: any; |
| 215 | |
| 216 | constructor( |
| 217 | viewContainer: ViewContainerRef, |
| 218 | templateRef: TemplateRef<Object>, |
| 219 | @Optional() @Host() private ngSwitch: NgSwitch, |
| 220 | ) { |
| 221 | if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) { |
| 222 | throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase'); |
| 223 | } |
| 224 | |
| 225 | ngSwitch._addCase(); |
| 226 | this._view = new SwitchView(viewContainer, templateRef); |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * Performs case matching. For internal use only. |
nothing calls this directly
no test coverage detected