BREAKING CHANGE: - Platform pipes can only contain types and arrays of types, but no bindings any more. - When using transformers, platform pipes need to be specified explicitly in the pubspec.yaml via the new config option `platform_pipes`. - `Compiler.compileInHost` now returns a `HostViewFactoryRef` - Component view is not yet created when component constructor is called. -> use `onInit` lifecycle callback to access the view of a component - `ViewRef#setLocal` has been moved to new type `EmbeddedViewRef` - `internalView` is gone, use `EmbeddedViewRef.rootNodes` to access the root nodes of an embedded view - `renderer.setElementProperty`, `..setElementStyle`, `..setElementAttribute` now take a native element instead of an ElementRef - `Renderer` interface now operates on plain native nodes, instead of `RenderElementRef`s or `RenderViewRef`s Closes #5993
		
			
				
	
	
		
			90 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| library core.spies;
 | |
| 
 | |
| import 'package:angular2/core.dart';
 | |
| import 'package:angular2/src/core/di/injector.dart';
 | |
| import 'package:angular2/src/core/change_detection/change_detection.dart';
 | |
| import 'package:angular2/src/core/render/api.dart';
 | |
| import 'package:angular2/src/core/linker/directive_resolver.dart';
 | |
| import 'package:angular2/src/core/linker/view.dart';
 | |
| import 'package:angular2/src/core/linker/element_ref.dart';
 | |
| import 'package:angular2/src/core/linker/view_manager.dart';
 | |
| import 'package:angular2/src/core/linker/view_listener.dart';
 | |
| import 'package:angular2/src/platform/dom/dom_adapter.dart';
 | |
| import 'package:angular2/testing_internal.dart';
 | |
| 
 | |
| @proxy
 | |
| class SpyDependencyProvider extends SpyObject implements DependencyProvider {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyChangeDetector extends SpyObject implements ChangeDetector {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyChangeDispatcher extends SpyObject implements ChangeDispatcher {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyIterableDifferFactory extends SpyObject
 | |
|     implements IterableDifferFactory {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyInjector extends SpyObject implements Injector {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyDirectiveResolver extends SpyObject implements DirectiveResolver {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyView extends SpyObject implements AppView {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyProtoView extends SpyObject implements AppProtoView {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyHostViewFactory extends SpyObject implements HostViewFactory {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyElementRef extends SpyObject implements ElementRef {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyAppViewManager extends SpyObject implements AppViewManager_ {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyRenderer extends SpyObject implements Renderer {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyRootRenderer extends SpyObject implements RootRenderer {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyAppViewListener extends SpyObject implements AppViewListener {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 | |
| 
 | |
| @proxy
 | |
| class SpyDomAdapter extends SpyObject implements DomAdapter {
 | |
|   noSuchMethod(m) => super.noSuchMethod(m);
 | |
| }
 |