closes https://github.com/angular/angular/issues/4943 BREAKING CHANGE: `Location` and other related providers have been moved out of `router` and into `platform/common`. `BrowserPlatformLocation` is not meant to be used directly however advanced configurations may use it via the following import change. Before: ``` import { PlatformLocation, Location, LocationStrategy, HashLocationStrategy, PathLocationStrategy, APP_BASE_HREF} from 'angular2/router'; import {BrowserPlatformLocation} from 'angular2/src/router/location/browser_platform_location'; ``` After: ``` import { PlatformLocation, Location, LocationStrategy, HashLocationStrategy, PathLocationStrategy, APP_BASE_HREF} from 'angular2/platform/common'; import {BrowserPlatformLocation} from 'angular2/src/platform/browser/location/browser_platform_location'; ``` Closes #7962
		
			
				
	
	
		
			21 lines
		
	
	
		
			545 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			545 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| library router.spies;
 | |
| 
 | |
| import 'package:angular2/platform/common.dart' show PlatformLocation, Location;
 | |
| import 'package:angular2/router.dart';
 | |
| import 'package:angular2/testing_internal.dart';
 | |
| 
 | |
| @proxy
 | |
| class SpyLocation extends SpyObject implements Location {}
 | |
| 
 | |
| @proxy
 | |
| class SpyRouter extends SpyObject implements Router {}
 | |
| 
 | |
| @proxy
 | |
| class SpyRouterOutlet extends SpyObject implements RouterOutlet {}
 | |
| 
 | |
| class SpyPlatformLocation extends SpyObject implements PlatformLocation {
 | |
|   String pathname = null;
 | |
|   String search = null;
 | |
|   String hash = null;
 | |
| }
 |