1e41f4b71Sopenharmony_ci# NavDestination
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci**NavDestination** is the root container of a destination page and represents the content area of the [Navigation](ts-basic-components-navigation.md) component.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> This component is supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version.
8e41f4b71Sopenharmony_ci>
9e41f4b71Sopenharmony_ci> Since API version 11, this component supports the safe area attribute by default, with the default attribute value being **expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]))**. You can override this attribute to change the default behavior. In earlier versions, you need to use the [expandSafeArea](ts-universal-attributes-expand-safe-area.md) attribute to implement the safe area feature.
10e41f4b71Sopenharmony_ci>
11e41f4b71Sopenharmony_ci> The **NavDestination** component must be used in conjunction with the **Navigation** component to act as the root node for the navigation destination page. When used alone, it can only function as a standard container component and does not possess any routing-related attributes or capabilities.
12e41f4b71Sopenharmony_ci>
13e41f4b71Sopenharmony_ci> If the lifecycle of a page in the middle of the navigation stack changes, the lifecycle of the destination page at the top of the stack before the transition (**onWillShow**, **onShown**, **onHidden**, **onWillDisappear**) and the lifecycle of the destination page after the transition (**onWillShow**, **onShown**, **onHidden**, **onWillDisappear**) are both triggered at the end.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci## Child Components
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ciBuilt-in components and custom components are allowed, with support for ([if/else](../../../quick-start/arkts-rendering-control-ifelse.md), [ForEach](../../../quick-start/arkts-rendering-control-foreach.md), and [LazyForEach](../../../quick-start/arkts-rendering-control-lazyforeach.md)) rendering control.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciNumber of child components: multiple.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci## APIs
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ciNavDestination()
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci## Attributes
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ciThe [universal attributes](ts-universal-attributes-size.md) are supported.
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ciAvoid setting layout-related attributes such as the position and size. They may result in display issues on the page.
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci### title
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_cititle(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle, options?: NavigationTitleOptions)
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ciSets the page title. When the NavigationCustomTitle type is used to set the height, the **titleMode** attribute does not take effect. When the title string is too long: (1) If no subtitle is set, the string is scaled down, wrapped in two lines, and then clipped with an ellipsis (...); (2) If a subtitle is set, the subtitle is scaled down and then clipped with an ellipsis (...).
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
43e41f4b71Sopenharmony_ci
44e41f4b71Sopenharmony_ci**Parameters**
45e41f4b71Sopenharmony_ci
46e41f4b71Sopenharmony_ci| Name| Type                                                        | Mandatory| Description      |
47e41f4b71Sopenharmony_ci| ------ | ------------------------------------------------------------ | ---- | ---------- |
48e41f4b71Sopenharmony_ci| value  | string \| [CustomBuilder](ts-types.md#custombuilder8) \| [NavDestinationCommonTitle](#navdestinationcommontitle) \| [NavDestinationCustomTitle](#navdestinationcustomtitle) | Yes  | Page title.|
49e41f4b71Sopenharmony_ci| options<sup>12+</sup> | [NavigationTitleOptions](ts-basic-components-navigation.md#navigationtitleoptions11) | No  | Title bar options.|
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci### hideTitleBar
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_cihideTitleBar(value: boolean)
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciSpecifies whether to hide the title bar.
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ci**Parameters**
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci| Name| Type   | Mandatory| Description                                                        |
64e41f4b71Sopenharmony_ci| ------ | ------- | ---- | ------------------------------------------------------------ |
65e41f4b71Sopenharmony_ci| value  | boolean | Yes  | Whether to hide the title bar.<br>Default value: **false**<br>**true**: Hide the title bar.<br>**false**: Display the title bar.|
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci### mode <sup>11+</sup>
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_cimode(value: NavDestinationMode)
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ciSets the type of the navigation destination page. Dynamic modification is not supported.
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ci**Parameters**
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ci| Name| Type                                                | Mandatory| Description                                                        |
80e41f4b71Sopenharmony_ci| ------ | ---------------------------------------------------- | ---- | ------------------------------------------------------------ |
81e41f4b71Sopenharmony_ci| value  | [NavDestinationMode](#navdestinationmode11) | Yes  | Mode of the navigation destination page.<br>Default value: **NavDestinationMode.STANDARD**|
82e41f4b71Sopenharmony_ci
83e41f4b71Sopenharmony_ci### backButtonIcon<sup>11+</sup>
84e41f4b71Sopenharmony_ci
85e41f4b71Sopenharmony_cibackButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier)
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ci> **NOTE**
88e41f4b71Sopenharmony_ci>
89e41f4b71Sopenharmony_ci> The following are not allowed: modify the icon size through the **fontSize** attribute of the **SymbolGlyphModifier** object, change the animation effects through the **effectStrategy** attribute, or change the type of animation effects through the **symbolEffect** attribute.
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ci
92e41f4b71Sopenharmony_ciSets the icon of the back button on the title bar.
93e41f4b71Sopenharmony_ci
94e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
95e41f4b71Sopenharmony_ci
96e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
97e41f4b71Sopenharmony_ci
98e41f4b71Sopenharmony_ci**Parameters**
99e41f4b71Sopenharmony_ci
100e41f4b71Sopenharmony_ci| Name| Type                                                        | Mandatory| Description              |
101e41f4b71Sopenharmony_ci| ------ | ------------------------------------------------------------ | ---- | ------------------ |
102e41f4b71Sopenharmony_ci| value  | [ResourceStr](ts-types.md#resourcestr) \| [PixelMap](../../apis-image-kit/js-apis-image.md#pixelmap7) \| [SymbolGlyphModifier<sup>12+</sup>](ts-universal-attributes-attribute-modifier.md)  | Yes  | Icon of the back button on the title bar.|
103e41f4b71Sopenharmony_ci
104e41f4b71Sopenharmony_ci### menus<sup>12+</sup>
105e41f4b71Sopenharmony_ci
106e41f4b71Sopenharmony_cimenus(value: Array&lt;NavigationMenuItem&gt; | CustomBuilder)
107e41f4b71Sopenharmony_ci
108e41f4b71Sopenharmony_ci> **NOTE**
109e41f4b71Sopenharmony_ci>
110e41f4b71Sopenharmony_ci> The following are not allowed: modify the icon size through the **fontSize** attribute of the **SymbolGlyphModifier** object, change the animation effects through the **effectStrategy** attribute, or change the type of animation effects through the **symbolEffect** attribute.
111e41f4b71Sopenharmony_ci
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ciSets the menu items in the upper right corner of the page. If this attribute is not set, no menu item is displayed. When the value type is Array<[NavigationMenuItem](ts-basic-components-navigation.md#navigationmenuitem)&gt;, the menu shows a maximum of three icons in portrait mode and a maximum of five icons in landscape mode, with excess icons (if any) placed under the automatically generated **More** icon.
114e41f4b71Sopenharmony_ci
115e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
116e41f4b71Sopenharmony_ci
117e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
118e41f4b71Sopenharmony_ci
119e41f4b71Sopenharmony_ci**Parameters**
120e41f4b71Sopenharmony_ci
121e41f4b71Sopenharmony_ci| Name| Type                                                        | Mandatory| Description              |
122e41f4b71Sopenharmony_ci| ------ | ------------------------------------------------------------ | ---- | ------------------ |
123e41f4b71Sopenharmony_ci| value  | Array<[NavigationMenuItem](ts-basic-components-navigation.md#navigationmenuitem)&gt; \| [CustomBuilder](ts-types.md#custombuilder8) | Yes  | Menu items in the upper right corner of the page.|
124e41f4b71Sopenharmony_ci
125e41f4b71Sopenharmony_ci### ignoreLayoutSafeArea<sup>12+</sup>
126e41f4b71Sopenharmony_ci
127e41f4b71Sopenharmony_ciignoreLayoutSafeArea(types?: Array&lt;LayoutSafeAreaType&gt;, edges?: Array&lt;LayoutSafeAreaEdge&gt;)
128e41f4b71Sopenharmony_ci
129e41f4b71Sopenharmony_ciIgnores the layout safe area by allowing the component to extend into the non-safe areas of the screen.
130e41f4b71Sopenharmony_ci
131e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
132e41f4b71Sopenharmony_ci
133e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
134e41f4b71Sopenharmony_ci
135e41f4b71Sopenharmony_ci**Parameters**
136e41f4b71Sopenharmony_ci
137e41f4b71Sopenharmony_ci| Name| Type                                              | Mandatory| Description                                                        |
138e41f4b71Sopenharmony_ci| ------ | -------------------------------------------------- | ---- | ------------------------------------------------------------ |
139e41f4b71Sopenharmony_ci| types  | Array <[LayoutSafeAreaType](ts-types.md#layoutsafeareatype12)> | No  | Types of non-safe areas to extend into.<br>Default value:<br>[LayoutSafeAreaType.SYSTEM] |
140e41f4b71Sopenharmony_ci| edges  | Array <[LayoutSafeAreaEdge](ts-types.md#layoutsafeareaedge12)> | No  | Edges for expanding the safe area.<br> Default value:<br>[LayoutSafeAreaEdge.TOP, LayoutSafeAreaEdge.BOTTOM]|
141e41f4b71Sopenharmony_ci
142e41f4b71Sopenharmony_ci>  **NOTE**
143e41f4b71Sopenharmony_ci>   
144e41f4b71Sopenharmony_ci>  After **LayoutSafeArea** is set:  
145e41f4b71Sopenharmony_ci>  When **LayoutSafeAreaType.SYSTEM** is set, the component can extend into the non-safe area if its boundaries overlap with it. For example, if the device's status bar is 100 high, the component must have an absolute vertical offset between 0 and 100 to extend into the non-safe area. 
146e41f4b71Sopenharmony_ci>   
147e41f4b71Sopenharmony_ci>  If the component extends into the non-safe area, events triggered within that area (such as click events) might be intercepted by the system. This allows the system to prioritize responses to system components such as the status bar.
148e41f4b71Sopenharmony_ci
149e41f4b71Sopenharmony_ci### systemBarStyle<sup>12+</sup>
150e41f4b71Sopenharmony_ci
151e41f4b71Sopenharmony_cisystemBarStyle(style: Optional&lt;SystemBarStyle&gt;)
152e41f4b71Sopenharmony_ci
153e41f4b71Sopenharmony_ciSets the style of the system status bar when this **NavDestination** page is displayed in the **Navigation** component.
154e41f4b71Sopenharmony_ci
155e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
156e41f4b71Sopenharmony_ci
157e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
158e41f4b71Sopenharmony_ci
159e41f4b71Sopenharmony_ci**Parameters**
160e41f4b71Sopenharmony_ci
161e41f4b71Sopenharmony_ci| Name| Type        | Mandatory| Description              |
162e41f4b71Sopenharmony_ci| ------ | -------------- | ---- | ------------------ |
163e41f4b71Sopenharmony_ci| style  | Optional&lt;[SystemBarStyle](../js-apis-window.md#systembarstyle12)&gt; | Yes  | Style of the system status bar.|
164e41f4b71Sopenharmony_ci
165e41f4b71Sopenharmony_ci> **NOTE**
166e41f4b71Sopenharmony_ci>
167e41f4b71Sopenharmony_ci> 1. The setting takes effect only when the **NavDestination** component is used in conjunction with the **Navigation** component.
168e41f4b71Sopenharmony_ci> 2. For other usage restrictions, see the description of [systemBarStyle](ts-basic-components-navigation.md#systembarstyle12) for the **Navigation** component.
169e41f4b71Sopenharmony_ci
170e41f4b71Sopenharmony_ci## NavDestinationMode<sup>11+</sup>
171e41f4b71Sopenharmony_ci
172e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
173e41f4b71Sopenharmony_ci
174e41f4b71Sopenharmony_ci| Name  | Description                                      |
175e41f4b71Sopenharmony_ci| ---- | ---------------------------------------- |
176e41f4b71Sopenharmony_ci| STANDARD | Standard mode.                      |
177e41f4b71Sopenharmony_ci| DIALOG | Dialog mode, in which the navigation destination is transparent by default, adding or removing it from the navigation stack does not affect the lifecycle of the lower-layer navigation destination, and the system transition animation is not supported.   |
178e41f4b71Sopenharmony_ci
179e41f4b71Sopenharmony_ci## Events
180e41f4b71Sopenharmony_ci
181e41f4b71Sopenharmony_ciIn addition to the [universal events](ts-universal-events-click.md), the following events are supported.
182e41f4b71Sopenharmony_ci
183e41f4b71Sopenharmony_ci### onShown<sup>10+</sup>
184e41f4b71Sopenharmony_ci
185e41f4b71Sopenharmony_cionShown(callback: () =&gt; void)
186e41f4b71Sopenharmony_ci
187e41f4b71Sopenharmony_ciCalled when the navigation destination page is displayed.
188e41f4b71Sopenharmony_ci
189e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
190e41f4b71Sopenharmony_ci
191e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
192e41f4b71Sopenharmony_ci
193e41f4b71Sopenharmony_ci### onHidden<sup>10+</sup>
194e41f4b71Sopenharmony_ci
195e41f4b71Sopenharmony_cionHidden(callback: () =&gt; void)
196e41f4b71Sopenharmony_ci
197e41f4b71Sopenharmony_ciCalled when the navigation destination page is hidden.
198e41f4b71Sopenharmony_ci
199e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
200e41f4b71Sopenharmony_ci
201e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
202e41f4b71Sopenharmony_ci
203e41f4b71Sopenharmony_ci### onWillAppear<sup>12+</sup>
204e41f4b71Sopenharmony_ci
205e41f4b71Sopenharmony_cionWillAppear(callback: Callback\<void>)
206e41f4b71Sopenharmony_ci
207e41f4b71Sopenharmony_ciCalled when the navigation destination is about to be mounted. You can change the navigation stack in this callback function, and the change takes effect in the current frame.
208e41f4b71Sopenharmony_ci
209e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
210e41f4b71Sopenharmony_ci
211e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
212e41f4b71Sopenharmony_ci
213e41f4b71Sopenharmony_ci### onWillShow<sup>12+</sup>
214e41f4b71Sopenharmony_ci
215e41f4b71Sopenharmony_cionWillShow(callback: Callback\<void>)
216e41f4b71Sopenharmony_ci
217e41f4b71Sopenharmony_ciCalled when the navigation destination is about to be displayed.
218e41f4b71Sopenharmony_ci
219e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
220e41f4b71Sopenharmony_ci
221e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
222e41f4b71Sopenharmony_ci
223e41f4b71Sopenharmony_ci### onWillHide<sup>12+</sup>
224e41f4b71Sopenharmony_ci
225e41f4b71Sopenharmony_cionWillHide(callback: Callback\<void>)
226e41f4b71Sopenharmony_ci
227e41f4b71Sopenharmony_ciCalled when the navigation destination is about to be hidden.
228e41f4b71Sopenharmony_ci
229e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
230e41f4b71Sopenharmony_ci
231e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
232e41f4b71Sopenharmony_ci
233e41f4b71Sopenharmony_ci### onWillDisappear<sup>12+</sup>
234e41f4b71Sopenharmony_ci
235e41f4b71Sopenharmony_cionWillDisappear(callback: Callback\<void>)
236e41f4b71Sopenharmony_ci
237e41f4b71Sopenharmony_ciCalled when the navigation destination is about to be unmounted (or when the transition animation, if any, is about to start).
238e41f4b71Sopenharmony_ci
239e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
240e41f4b71Sopenharmony_ci
241e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
242e41f4b71Sopenharmony_ci
243e41f4b71Sopenharmony_ci### onBackPressed<sup>10+</sup>
244e41f4b71Sopenharmony_ci
245e41f4b71Sopenharmony_cionBackPressed(callback: () =&gt; boolean)
246e41f4b71Sopenharmony_ci
247e41f4b71Sopenharmony_ciThis callback takes effect when there is one or more entries in the navigation stack bound to the **Navigation** component. Called when the back button is pressed.
248e41f4b71Sopenharmony_ci
249e41f4b71Sopenharmony_ciThe value **true** means that the back button logic is overridden, and **false** means that the previous page is displayed.
250e41f4b71Sopenharmony_ci
251e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
252e41f4b71Sopenharmony_ci
253e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
254e41f4b71Sopenharmony_ci
255e41f4b71Sopenharmony_ci### onReady<sup>11+</sup>
256e41f4b71Sopenharmony_ci
257e41f4b71Sopenharmony_cionReady(callback: [Callback](../../apis-basic-services-kit/js-apis-base.md#callback)<[NavDestinationContext](#navdestinationcontext11)>)
258e41f4b71Sopenharmony_ci
259e41f4b71Sopenharmony_ciCalled when the **NavDestination** component is about to build a child component.
260e41f4b71Sopenharmony_ci
261e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
262e41f4b71Sopenharmony_ci
263e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
264e41f4b71Sopenharmony_ci
265e41f4b71Sopenharmony_ci## NavDestinationCommonTitle
266e41f4b71Sopenharmony_ci
267e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
268e41f4b71Sopenharmony_ci
269e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
270e41f4b71Sopenharmony_ci
271e41f4b71Sopenharmony_ci| Name  | Type    | Mandatory  | Description    |
272e41f4b71Sopenharmony_ci| ---- | ------ | ---- | ------ |
273e41f4b71Sopenharmony_ci| main | string | Yes   | Main title.|
274e41f4b71Sopenharmony_ci| sub  | string | Yes   | Subtitle.|
275e41f4b71Sopenharmony_ci
276e41f4b71Sopenharmony_ci## NavDestinationCustomTitle
277e41f4b71Sopenharmony_ci
278e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11.
279e41f4b71Sopenharmony_ci
280e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
281e41f4b71Sopenharmony_ci
282e41f4b71Sopenharmony_ci| Name     | Type                                      | Mandatory  | Description      |
283e41f4b71Sopenharmony_ci| ------- | ---------------------------------------- | ---- | -------- |
284e41f4b71Sopenharmony_ci| builder | [CustomBuilder](ts-types.md#custombuilder8) | Yes   | Content of the title bar.|
285e41f4b71Sopenharmony_ci| height  | [TitleHeight](ts-basic-components-navigation.md#titleheight9) \| [Length](ts-types.md#length) | Yes   | Height of the title bar.|
286e41f4b71Sopenharmony_ci
287e41f4b71Sopenharmony_ci## NavDestinationContext<sup>11+</sup>
288e41f4b71Sopenharmony_ci
289e41f4b71Sopenharmony_ci| Name  | Type    | Mandatory  |  Description    |
290e41f4b71Sopenharmony_ci| ---- | ------ | ----- | ------ |
291e41f4b71Sopenharmony_ci| pathInfo | [NavPathInfo](ts-basic-components-navigation.md#navpathinfo10) | Yes| Path information of the navigation destination page.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
292e41f4b71Sopenharmony_ci| pathStack  | [NavPathStack](ts-basic-components-navigation.md#navpathstack10) | Yes| Page stack where the current navigation destination page is located.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
293e41f4b71Sopenharmony_ci| navDestinationId<sup>12+</sup> | string | No| Unique ID of the current navigation destination page, which is automatically generated by the system and is irrelevant to the universal attribute **id** of the component.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
294e41f4b71Sopenharmony_ci
295e41f4b71Sopenharmony_ci### getConfigInRouteMap<sup>12+</sup>
296e41f4b71Sopenharmony_ci
297e41f4b71Sopenharmony_cigetConfigInRouteMap(): RouteMapConfig |undefined
298e41f4b71Sopenharmony_ci
299e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
300e41f4b71Sopenharmony_ci
301e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full
302e41f4b71Sopenharmony_ci
303e41f4b71Sopenharmony_ci**Return value**
304e41f4b71Sopenharmony_ci
305e41f4b71Sopenharmony_ci| Type| Description|
306e41f4b71Sopenharmony_ci| --- | --- |
307e41f4b71Sopenharmony_ci| [RouteMapConfig](#routemapconfig12) | Route map configuration of the current page.|
308e41f4b71Sopenharmony_ci| undefined | **undefined**, returned when the page is not configured through the route table.|
309e41f4b71Sopenharmony_ci
310e41f4b71Sopenharmony_ci## RouteMapConfig<sup>12+</sup>
311e41f4b71Sopenharmony_ci
312e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 12.
313e41f4b71Sopenharmony_ci
314e41f4b71Sopenharmony_ci| Name  | Type  | Description|
315e41f4b71Sopenharmony_ci| ----  | ---   | ----- |
316e41f4b71Sopenharmony_ci| name  | string | Page name.|
317e41f4b71Sopenharmony_ci| pageSourceFile| string | Path of the page in the current package.|
318e41f4b71Sopenharmony_ci| data | object | Custom data of the page.|
319e41f4b71Sopenharmony_ci
320e41f4b71Sopenharmony_ci## Example
321e41f4b71Sopenharmony_ci
322e41f4b71Sopenharmony_ciFor details, see [Example in Navigation](ts-basic-components-navigation.md#example-1).
323