File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
modules/angular2/src/change_detection Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ export var defaultPipes = {
4646
4747
4848/**
49+ * Implements change detection that does not require `eval()`.
50+ *
51+ * This is slower than {@link JitChangeDetection}.
52+ *
4953 * @exportedAs angular2/change_detection
5054 */
5155@Injectable ( )
@@ -63,6 +67,10 @@ export class DynamicChangeDetection extends ChangeDetection {
6367}
6468
6569/**
70+ * Implements faster change detection, by generating source code.
71+ *
72+ * This requires `eval()`. For change detection that does not require `eval()`, see {@link DynamicChangeDetection}.
73+ *
6674 * @exportedAs angular2/change_detection
6775 */
6876@Injectable ( )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class ProtoChangeDetector {
2828 *
2929 * # Example
3030 * ```javascript
31- * bootstrap(MyApp, [bind(ChangeDetection).toValue(dynamicChangeDetection )]);
31+ * bootstrap(MyApp, [bind(ChangeDetection).toClass(DynamicChangeDetection )]);
3232 * ```
3333 * @exportedAs angular2/change_detection
3434 */
You can’t perform that action at this time.
0 commit comments