• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ArkUI Routing/Navigation Development (ArkTS)
2
3## Why can't class objects be transferred through params in the router API?
4
5Applicable to: OpenHarmony 3.2 Beta5 (API version 9, stage model)
6
7Only attributes in an object can be transferred, and methods in the object cannot.
8
9## How do I use router to implement page redirection in the stage model?
10
11Applicable to: OpenHarmony 3.2 Beta5 (API version 9, stage model)
12
131.  To implement page redirection through **router**, add all redirected-to pages to the **pages** list in the **main\_pages.json** file.
142.  Page routing APIs in **router** can be invoked only after page rendering is complete. Do not call these APIs in **onInit** or **onReady** when the page is still in the rendering phase.
15
16**Reference**
17
18[@ohos.router (Page Routing)](../reference/apis/js-apis-router.md)
19
20## Will a page pushed into the stack through router.push be reclaimed?
21
22Applicable to: OpenHarmony 3.2 Beta5 (API version 9, stage model)
23
24After being pushed to the stack through **router.push**, a page can be reclaimed only when it is popped from the stack through **router.back**.
25
26**Reference**
27
28[router.getParams](../reference/apis/js-apis-router.md#routergetparams)