> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Host Data

Read the data your **host app** (the native iOS or Android app that runs your code, see [Glossary](/guide/glossary.md#host-app)) passes in, as signals. The example prints both kinds as JSON.


## What it shows

- **`LynxInitData`** — `initData()` holds the **InitData** ([Glossary](/guide/glossary.md#initdata)): what the host app passes when it opens your [bundle](/guide/glossary.md#bundle), such as a user ID or a page parameter.
- **`LynxGlobalData`** — `globalData()` holds the **GlobalData** ([Glossary](/guide/glossary.md#globaldata)): what the host app shares with every bundle, such as the theme. The host app can change it while the app runs.
- **Services injected into private fields** — `inject()` stores both services in `#initData` and `#globalData`.
- **Signals read from the template** — `initDataJson()` and `globalDataJson()` read the signals, so the view updates when the data changes.

## Related

- [Pass data from your native app](/guide/embedding/host-data.md)
- [Host data API](/api/angular-lynx/host/host-data.md)
