
committed by
Miško Hevery

parent
77309e2ea4
commit
e6516b0229
@ -27,6 +27,7 @@ import {getSymbolIterator} from '../util';
|
||||
*
|
||||
* NOTE: In the future this class will implement an `Observable` interface.
|
||||
*
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
* ```typescript
|
||||
* @Component({...})
|
||||
@ -34,7 +35,6 @@ import {getSymbolIterator} from '../util';
|
||||
* @ViewChildren(Item) items:QueryList<Item>;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
*/
|
||||
export class QueryList<T>/* implements Iterable<T> */ {
|
||||
public readonly dirty = true;
|
||||
|
@ -29,9 +29,10 @@ export abstract class ViewRef extends ChangeDetectorRef {
|
||||
*
|
||||
* Properties of elements in a View can change, but the structure (number and order) of elements in
|
||||
* a View cannot. Changing the structure of Elements can only be done by inserting, moving or
|
||||
* removing nested Views via a {@link ViewContainerRef}. Each View can contain many View Containers.
|
||||
* removing nested Views via a `ViewContainerRef`. Each View can contain many View Containers.
|
||||
* <!-- /TODO -->
|
||||
*
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* Given this template...
|
||||
@ -43,9 +44,10 @@ export abstract class ViewRef extends ChangeDetectorRef {
|
||||
* </ul>
|
||||
* ```
|
||||
*
|
||||
* We have two {@link TemplateRef}s:
|
||||
* We have two `TemplateRef`s:
|
||||
*
|
||||
* Outer `TemplateRef`:
|
||||
*
|
||||
* Outer {@link TemplateRef}:
|
||||
* ```
|
||||
* Count: {{items.length}}
|
||||
* <ul>
|
||||
@ -53,14 +55,15 @@ export abstract class ViewRef extends ChangeDetectorRef {
|
||||
* </ul>
|
||||
* ```
|
||||
*
|
||||
* Inner {@link TemplateRef}:
|
||||
* Inner `TemplateRef`:
|
||||
*
|
||||
* ```
|
||||
* <li>{{item}}</li>
|
||||
* ```
|
||||
*
|
||||
* Notice that the original template is broken down into two separate {@link TemplateRef}s.
|
||||
* Notice that the original template is broken down into two separate `TemplateRef`s.
|
||||
*
|
||||
* The outer/inner {@link TemplateRef}s are then assembled into views like so:
|
||||
* The outer/inner `TemplateRef`s are then assembled into views like so:
|
||||
*
|
||||
* ```
|
||||
* <!-- ViewRef: outer-0 -->
|
||||
|
Reference in New Issue
Block a user