@@ -98,7 +98,7 @@ import { RootModule, StatesModule, UIROUTER_ROOT_MODULE, UIROUTER_MODULE_TOKEN }
98
98
import { servicesPlugin , ServicesPlugin } from "ui-router-core" ;
99
99
import { ng2LazyLoadBuilder } from "./statebuilders/lazyLoad" ;
100
100
import { UIRouterRx } from "ui-router-rx" ;
101
- import { LocationStrategy , PlatformLocation } from "@angular/common" ;
101
+ import { LocationStrategy } from "@angular/common" ;
102
102
import { Ng2LocationServices } from "./location/locationService" ;
103
103
import { Ng2LocationConfig } from "./location/locationConfig" ;
104
104
@@ -108,7 +108,7 @@ import { Ng2LocationConfig } from "./location/locationConfig";
108
108
* Creates a UIRouter instance and configures it for Angular 2, then invokes router bootstrap.
109
109
* This function is used as an Angular 2 `useFactory` Provider.
110
110
*/
111
- export function uiRouterFactory ( locationStrategy : LocationStrategy , platformLocation : PlatformLocation , injector : Injector ) {
111
+ export function uiRouterFactory ( locationStrategy : LocationStrategy , injector : Injector ) {
112
112
let rootModules : RootModule [ ] = injector . get ( UIROUTER_ROOT_MODULE ) ;
113
113
let modules : StatesModule [ ] = injector . get ( UIROUTER_MODULE_TOKEN ) ;
114
114
@@ -133,8 +133,8 @@ export function uiRouterFactory(locationStrategy: LocationStrategy, platformLoca
133
133
134
134
135
135
// ----------------- Configure for ng2 -------------
136
- router . locationService = new Ng2LocationServices ( router , locationStrategy , platformLocation ) ;
137
- router . locationConfig = new Ng2LocationConfig ( router , locationStrategy , platformLocation ) ;
136
+ router . locationService = new Ng2LocationServices ( router , locationStrategy ) ;
137
+ router . locationConfig = new Ng2LocationConfig ( router , locationStrategy ) ;
138
138
139
139
// Apply ng2 ui-view handling code
140
140
let viewConfigFactory = ( path : PathNode [ ] , config : Ng2ViewDeclaration ) => new Ng2ViewConfig ( path , config ) ;
@@ -170,7 +170,7 @@ export function uiRouterFactory(locationStrategy: LocationStrategy, platformLoca
170
170
export function parentUIViewInjectFactory ( r : StateRegistry ) { return { fqn : null , context : r . root ( ) } as ParentUIViewInject ; }
171
171
172
172
export const _UIROUTER_INSTANCE_PROVIDERS : Provider [ ] = [
173
- { provide : UIRouter , useFactory : uiRouterFactory , deps : [ LocationStrategy , PlatformLocation , Injector ] } ,
173
+ { provide : UIRouter , useFactory : uiRouterFactory , deps : [ LocationStrategy , Injector ] } ,
174
174
{ provide : UIView . PARENT_INJECT , useFactory : parentUIViewInjectFactory , deps : [ StateRegistry ] } ,
175
175
] ;
176
176
0 commit comments