docs(ng_for.ts): For => NgFor

This commit is contained in:
gdi2290 2015-05-26 21:53:59 -07:00 committed by Victor Berchet
parent c19c69f336
commit 1db6870a81
1 changed files with 4 additions and 4 deletions

View File

@ -4,14 +4,14 @@ import {isPresent, isBlank} from 'angular2/src/facade/lang';
import {ListWrapper} from 'angular2/src/facade/collection'; import {ListWrapper} from 'angular2/src/facade/collection';
/** /**
* The `For` directive instantiates a template once per item from an iterable. The context for each * The `NgFor` directive instantiates a template once per item from an iterable. The context for
* instantiated template inherits from the outer context with the given loop variable set to the * each instantiated template inherits from the outer context with the given loop variable set
* current item from the iterable. * to the current item from the iterable.
* *
* It is possible to alias the `index` to a local variable that will be set to the current loop * It is possible to alias the `index` to a local variable that will be set to the current loop
* iteration in the template context. * iteration in the template context.
* *
* When the contents of the iterator changes, `For` makes the corresponding changes to the DOM: * When the contents of the iterator changes, `NgFor` makes the corresponding changes to the DOM:
* *
* * When an item is added, a new instance of the template is added to the DOM. * * When an item is added, a new instance of the template is added to the DOM.
* * When an item is removed, its template instance is removed from the DOM. * * When an item is removed, its template instance is removed from the DOM.