docs(directives): correct property binding examples

Closes #2663
This commit is contained in:
Pawel Kozlowski 2015-06-21 12:15:30 +02:00
parent aeb17d8d44
commit 8a5cf8f6bd
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ import {isPresent, isBlank} from 'angular2/src/facade/lang';
* *
* - `<li *ng-for="#item of items; #i = index">...</li>` * - `<li *ng-for="#item of items; #i = index">...</li>`
* - `<li template="ng-for #item of items; #i = index">...</li>` * - `<li template="ng-for #item of items; #i = index">...</li>`
* - `<template [ng-for] #item [ng-for-of]="items" #i="index"><li>...</li></template>` * - `<template ng-for #item [ng-for-of]="items" #i="index"><li>...</li></template>`
* *
* @exportedAs angular2/directives * @exportedAs angular2/directives
*/ */

View File

@ -38,7 +38,7 @@ export class SwitchView {
* <ANY [ng-switch]="expression"> * <ANY [ng-switch]="expression">
* <template [ng-switch-when]="whenExpression1">...</template> * <template [ng-switch-when]="whenExpression1">...</template>
* <template [ng-switch-when]="whenExpression1">...</template> * <template [ng-switch-when]="whenExpression1">...</template>
* <template [ng-switch-default]>...</template> * <template ng-switch-default>...</template>
* </ANY> * </ANY>
* ``` * ```
* *
@ -148,7 +148,7 @@ export class NgSwitch {
* <template [ng-switch-when]="contextVariable">...</template> * <template [ng-switch-when]="contextVariable">...</template>
* *
* // match against a constant string * // match against a constant string
* <template [ng-switch-when]="'stringValue'">...</template> * <template ng-switch-when="stringValue">...</template>
* ``` * ```
* *
* @exportedAs angular2/directives * @exportedAs angular2/directives
@ -184,7 +184,7 @@ export class NgSwitchWhen {
* Example: * Example:
* *
* ``` * ```
* <template [ng-switch-default]>...</template> * <template ng-switch-default>...</template>
* ``` * ```
* *
* @exportedAs angular2/directives * @exportedAs angular2/directives