| 
									
										
										
										
											2015-08-26 11:41:41 -07:00
										 |  |  | library router.spies; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												refactor(Location): out of router and into platform/common
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
											
										 
											2016-04-08 00:31:20 -07:00
										 |  |  | import 'package:angular2/platform/common.dart' show PlatformLocation, Location; | 
					
						
							| 
									
										
										
										
											2015-08-26 11:41:41 -07:00
										 |  |  | import 'package:angular2/router.dart'; | 
					
						
							| 
									
										
										
										
											2015-10-13 00:29:13 -07:00
										 |  |  | import 'package:angular2/testing_internal.dart'; | 
					
						
							| 
									
										
										
										
											2015-08-26 11:41:41 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2016-01-12 11:36:58 -08:00
										 |  |  | class SpyLocation extends SpyObject implements Location {} | 
					
						
							| 
									
										
										
										
											2015-08-26 11:41:41 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2016-01-12 11:36:58 -08:00
										 |  |  | class SpyRouter extends SpyObject implements Router {} | 
					
						
							| 
									
										
										
										
											2015-08-26 11:41:41 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2016-01-12 11:36:58 -08:00
										 |  |  | class SpyRouterOutlet extends SpyObject implements RouterOutlet {} | 
					
						
							| 
									
										
										
										
											2015-11-23 10:47:06 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | class SpyPlatformLocation extends SpyObject implements PlatformLocation { | 
					
						
							| 
									
										
										
										
											2016-02-25 16:18:55 -08:00
										 |  |  |   String pathname = null; | 
					
						
							|  |  |  |   String search = null; | 
					
						
							|  |  |  |   String hash = null; | 
					
						
							| 
									
										
										
										
											2015-11-23 10:47:06 -08:00
										 |  |  | } |