• 개요
@angular/common

NgSwitchDefault

디렉티브
사용 중단 권고v20.0부터

Creates a view that is rendered when no NgSwitchCase expressions match the NgSwitch expression. This statement should be the final case in an NgSwitch.

사용 중단을 권고합니다.

Use the @default block within a @switch block instead. Intent to remove in a future major release

API

    
      class NgSwitchDefault {}
    
    

constructor

NgSwitchDefault
@paramviewContainerViewContainerRef
@paramtemplateRefTemplateRef<Object>
@paramngSwitchNgSwitch

설명

Creates a view that is rendered when no NgSwitchCase expressions match the NgSwitch expression. This statement should be the final case in an NgSwitch.

다음 모듈에서 내보냄

상세 내용으로 이동