Skip to content

Commit 839dc4a

Browse files
Ludevikchristopherthielen
authored andcommitted
fix(stateService): change reloadState parameter in reload function is optional (#2973)
1 parent faf7bc5 commit 839dc4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state/stateService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class StateService {
128128
* @returns {promise} A promise representing the state of the new transition. See
129129
* {@link ui.router.state.$state#methods_go $state.go}.
130130
*/
131-
reload(reloadState: StateOrName): Promise<State> {
131+
reload(reloadState?: StateOrName): Promise<State> {
132132
return this.transitionTo(this.current, this.params, {
133133
reload: isDefined(reloadState) ? reloadState : true,
134134
inherit: false,

0 commit comments

Comments
 (0)