feat(change_detection): added support for ObservableList from package:observe

This commit is contained in:
vsavkin
2015-07-15 13:26:02 -07:00
parent 583c5ffcb5
commit d449ea5ca4
8 changed files with 244 additions and 1 deletions

View File

@ -27,4 +27,9 @@ class SpyPipeFactory extends SpyObject implements PipeFactory {
@proxy
class SpyDependencyProvider extends SpyObject implements DependencyProvider {
noSuchMethod(m) => super.noSuchMethod(m);
}
@proxy
class SpyChangeDetectorRef extends SpyObject implements ChangeDetectorRef {
noSuchMethod(m) => super.noSuchMethod(m);
}

View File

@ -56,6 +56,7 @@ import {
DOM_REFLECT_PROPERTIES_AS_ATTRIBUTES
} from 'angular2/src/render/dom/dom_renderer';
import {DefaultDomCompiler} from 'angular2/src/render/dom/compiler/compiler';
import {Log} from './utils';
/**
* Returns the root injector bindings.
@ -107,6 +108,7 @@ function _getAppBindings() {
CompilerCache,
bind(ViewResolver).toClass(MockViewResolver),
bind(Pipes).toValue(defaultPipes),
Log,
bind(ChangeDetection).toClass(DynamicChangeDetection),
ViewLoader,
DynamicComponentLoader,