• Overview
@angular/common

NgSwitchCase

directive

Provides a switch case expression to match against an enclosing ngSwitch expression. When the expressions match, the given NgSwitchCase template is rendered. If multiple match expressions match the switch expression value, all of them are displayed.

  
    class NgSwitchCase implements DoCheck {}
  
  

ngSwitchCase

any

Stores the HTML template to be selected on match.

ngDoCheck

void

Performs case matching. For internal use only.

@returnsvoid
Jump to details