(
viewContainer: ViewContainerRef,
templateRef: TemplateRef<Object>,
@Optional() @Host() ngSwitch: NgSwitch,
)
| 256 | }) |
| 257 | export class NgSwitchDefault { |
| 258 | constructor( |
| 259 | viewContainer: ViewContainerRef, |
| 260 | templateRef: TemplateRef<Object>, |
| 261 | @Optional() @Host() ngSwitch: NgSwitch, |
| 262 | ) { |
| 263 | if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) { |
| 264 | throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault'); |
| 265 | } |
| 266 | |
| 267 | ngSwitch._addDefault(new SwitchView(viewContainer, templateRef)); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | function throwNgSwitchProviderNotFoundError(attrName: string, directiveName: string): never { |
nothing calls this directly
no test coverage detected