docs(change_detection): document JitChangeDetection and DynamicChangeDetection
closes #1446
This commit is contained in:
parent
99fdb9ac41
commit
6ab19dd095
|
@ -46,6 +46,10 @@ export var defaultPipes = {
|
|||
|
||||
|
||||
/**
|
||||
* Implements change detection that does not require `eval()`.
|
||||
*
|
||||
* This is slower than {@link JitChangeDetection}.
|
||||
*
|
||||
* @exportedAs angular2/change_detection
|
||||
*/
|
||||
@Injectable()
|
||||
|
@ -63,6 +67,10 @@ export class DynamicChangeDetection extends ChangeDetection {
|
|||
}
|
||||
|
||||
/**
|
||||
* Implements faster change detection, by generating source code.
|
||||
*
|
||||
* This requires `eval()`. For change detection that does not require `eval()`, see {@link DynamicChangeDetection}.
|
||||
*
|
||||
* @exportedAs angular2/change_detection
|
||||
*/
|
||||
@Injectable()
|
||||
|
|
|
@ -28,7 +28,7 @@ export class ProtoChangeDetector {
|
|||
*
|
||||
* # Example
|
||||
* ```javascript
|
||||
* bootstrap(MyApp, [bind(ChangeDetection).toValue(dynamicChangeDetection)]);
|
||||
* bootstrap(MyApp, [bind(ChangeDetection).toClass(DynamicChangeDetection)]);
|
||||
* ```
|
||||
* @exportedAs angular2/change_detection
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue