Skip to content

Commit 8a5cf8f

Browse files
docs(directives): correct property binding examples
Closes angular#2663
1 parent aeb17d8 commit 8a5cf8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/angular2/src/directives/ng_for.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {isPresent, isBlank} from 'angular2/src/facade/lang';
3737
*
3838
* - `<li *ng-for="#item of items; #i = index">...</li>`
3939
* - `<li template="ng-for #item of items; #i = index">...</li>`
40-
* - `<template [ng-for] #item [ng-for-of]="items" #i="index"><li>...</li></template>`
40+
* - `<template ng-for #item [ng-for-of]="items" #i="index"><li>...</li></template>`
4141
*
4242
* @exportedAs angular2/directives
4343
*/

modules/angular2/src/directives/ng_switch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class SwitchView {
3838
* <ANY [ng-switch]="expression">
3939
* <template [ng-switch-when]="whenExpression1">...</template>
4040
* <template [ng-switch-when]="whenExpression1">...</template>
41-
* <template [ng-switch-default]>...</template>
41+
* <template ng-switch-default>...</template>
4242
* </ANY>
4343
* ```
4444
*
@@ -148,7 +148,7 @@ export class NgSwitch {
148148
* <template [ng-switch-when]="contextVariable">...</template>
149149
*
150150
* // match against a constant string
151-
* <template [ng-switch-when]="'stringValue'">...</template>
151+
* <template ng-switch-when="stringValue">...</template>
152152
* ```
153153
*
154154
* @exportedAs angular2/directives
@@ -184,7 +184,7 @@ export class NgSwitchWhen {
184184
* Example:
185185
*
186186
* ```
187-
* <template [ng-switch-default]>...</template>
187+
* <template ng-switch-default>...</template>
188188
* ```
189189
*
190190
* @exportedAs angular2/directives

0 commit comments

Comments
 (0)