p. exported from angular2/directives defined in angular2/src/directives/switch.js (line 152) :markdown Defines a case statement as an expression. If multiple `SwitchWhen` match the `Switch` value, all of them are displayed. Example: ``` // match against a context variable // match against a constant string ``` .l-main-section h2 Members .l-sub-section h3 constructor pre.prettyprint code. constructor(viewContainer: ViewContainer, sswitch: Switch) :markdown .l-sub-section h3 when pre.prettyprint code. when(value) :markdown