Skip to content

Commit d1263a8

Browse files
committed
fix(router): passing params to ion-nav
1 parent 1dad0ad commit d1263a8

File tree

1 file changed

+3
-3
lines changed
  • packages/core/src/components/nav

1 file changed

+3
-3
lines changed

packages/core/src/components/nav/nav.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,17 @@ export class NavControllerBase implements NavOutlet {
201201
}
202202

203203
@Method()
204-
setRouteId(id: string, _: any = {}, direction: number): Promise<boolean> {
204+
setRouteId(id: string, params: any = {}, direction: number): Promise<boolean> {
205205
const active = this.getActive();
206206
if (active && active.component === id) {
207207
return Promise.resolve(false);
208208
}
209209
if (direction === 1) {
210-
return this.push(id).then(() => true);
210+
return this.push(id, params).then(() => true);
211211
} else if (direction === -1 && this.canGoBack()) {
212212
return this.pop().then(() => true);
213213
}
214-
return this.setRoot(id).then(() => true);
214+
return this.setRoot(id, params).then(() => true);
215215
}
216216

217217
@Method()

0 commit comments

Comments
 (0)