docs(change_detection): document JitChangeDetection and DynamicChangeDetection

closes #1446
This commit is contained in:
Naomi Black 2015-04-27 15:30:47 -07:00
parent 99fdb9ac41
commit 6ab19dd095
2 changed files with 9 additions and 1 deletions

View File

@ -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()

View File

@ -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
*/