Skip to content

Commit 87aba18

Browse files
committed
Rever undefined param definition
1 parent d362f12 commit 87aba18

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/router/state/state-registry.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ export class StateRegistryProvider {
103103
$transition$: trans,
104104
});
105105

106-
return that.$injector.invoke(hook, that, locals);
106+
return /** @type {ng.InjectorService} */ (that.$injector).invoke(
107+
hook,
108+
that,
109+
locals,
110+
);
107111
}
108112

109113
return hook ? decoratedNg1Hook : undefined;
@@ -119,7 +123,7 @@ export class StateRegistryProvider {
119123
name: "",
120124
url: "^",
121125
params: {
122-
"#": { value: undefined, type: "hash", dynamic: true }, // note that value has to be presetn
126+
"#": { value: null, type: "hash", dynamic: true },
123127
},
124128
abstract: true,
125129
};

0 commit comments

Comments
 (0)