@@ -21,7 +21,7 @@ export class PathFactory {
2121 /** Given a Node[], create an TargetState */
2222 static makeTargetState ( path : Node [ ] ) : TargetState {
2323 let state = tail ( path ) . state ;
24- return new TargetState ( state , state , path . map ( prop ( "values " ) ) . reduce ( mergeR , { } ) ) ;
24+ return new TargetState ( state , state , path . map ( prop ( "paramValues " ) ) . reduce ( mergeR , { } ) ) ;
2525 }
2626
2727 /* Given params and a state, creates an Node */
@@ -50,8 +50,8 @@ export class PathFactory {
5050 */
5151 static inheritParams ( fromPath : Node [ ] , toPath : Node [ ] , toKeys : string [ ] = [ ] ) : Node [ ] {
5252 function nodeParamVals ( path : Node [ ] , state : State ) : RawParams {
53- let node = find ( path , propEq ( 'state' , state ) ) ;
54- return extend ( { } , node && node . values ) ;
53+ let node : Node = find ( path , propEq ( 'state' , state ) ) ;
54+ return extend ( { } , node && node . paramValues ) ;
5555 }
5656
5757 /**
@@ -60,7 +60,7 @@ export class PathFactory {
6060 */
6161 let makeInheritedParamsNode = curry ( function ( _fromPath : Node [ ] , _toKeys : string [ ] , toNode : Node ) : Node {
6262 // All param values for the node (may include default key/vals, when key was not found in toParams)
63- let toParamVals = extend ( { } , toNode && toNode . values ) ;
63+ let toParamVals = extend ( { } , toNode && toNode . paramValues ) ;
6464 // limited to only those keys found in toParams
6565 let incomingParamVals = pick ( toParamVals , _toKeys ) ;
6666 toParamVals = omit ( toParamVals , _toKeys ) ;
@@ -88,7 +88,7 @@ export class PathFactory {
8888 resolvePath . forEach ( ( node : Node ) => {
8989 node . resolveContext = resolveContext . isolateRootTo ( node . state ) ;
9090 node . resolveInjector = new ResolveInjector ( node . resolveContext , node . state ) ;
91- node . resolves . $stateParams = new Resolvable ( "$stateParams" , ( ) => node . values , node . values ) ;
91+ node . resolves . $stateParams = new Resolvable ( "$stateParams" , ( ) => node . paramValues , node . paramValues ) ;
9292 } ) ;
9393
9494 return resolvePath ;
@@ -108,7 +108,7 @@ export class PathFactory {
108108
109109 /** Given a retained node, return a new node which uses the to node's param values */
110110 function applyToParams ( retainedNode : Node , idx : number ) : Node {
111- return Node . clone ( retainedNode , { values : toPath [ idx ] . values } ) ;
111+ return Node . clone ( retainedNode , { paramValues : toPath [ idx ] . paramValues } ) ;
112112 }
113113
114114 let from : Node [ ] , retained : Node [ ] , exiting : Node [ ] , entering : Node [ ] , to : Node [ ] ;
0 commit comments