p.location-badge. exported from angular2/directives defined in angular2/src/directives/ng_switch.ts (line 135) :markdown Defines a case statement as an expression. If multiple `NgSwitchWhen` match the `NgSwitch` value, all of them are displayed. Example: ``` // match against a context variable // match against a constant string ``` .l-main-section h2 Annotations .l-sub-section h3.annotation Directive pre.prettyprint code. @Directive({selector: '[ng-switch-when]', properties: ['ngSwitchWhen']}) .l-main-section h2 Members .l-sub-section h3 constructor pre.prettyprint code. constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef, sswitch: NgSwitch) :markdown .l-sub-section h3 onDestroy pre.prettyprint code. onDestroy() :markdown .l-sub-section h3 ngSwitchWhen :markdown