51 lines
943 B
Plaintext
Raw Normal View History

2015-04-19 13:53:18 -07:00
2015-04-22 08:06:51 -07:00
p.location-badge.
2015-04-23 08:27:36 -07:00
exported from <a href="/angular2/directives.html">angular2/directives</a>
2015-04-19 13:53:18 -07:00
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/directives/switch.js#L152">angular2/src/directives/switch.js (line 152)</a>
: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
<template [switch-when]="contextVariable">...</template>
// match against a constant string
<template [switch-when]="'stringValue'">...</template>
```
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
2015-04-20 13:57:43 -07:00
constructor(viewContainer: ViewContainer, sswitch: Switch)
2015-04-19 13:53:18 -07:00
:markdown
.l-sub-section
h3 when
pre.prettyprint
code.
2015-04-20 13:57:43 -07:00
when(value)
2015-04-19 13:53:18 -07:00
:markdown