# Pass data from html.page to .ts file

**URL:** <https://forum.ionicframework.com/t/pass-data-from-html-page-to-ts-file/205426>\
**Category:** Ionic Angular\
**Created:** [February 24, 2021, 3:33pm UTC](https://forum.ionicframework.com/t/pass-data-from-html-page-to-ts-file/205426 "2021-02-24T15:33:24Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 2, 2021, 8:24pm UTC](https://forum.ionicframework.com/t/pass-data-from-html-page-to-ts-file/205426/15 "2021-03-02T20:24:48Z")

</div>

If you are looking for a general solution to the problem “how do I distribute information like ‘profile of the logged-in user’ across my app?”, [here](https://forum.ionicframework.com/t/ionic-4-tab-to-page-then-back-to-tab-did-not-trigger-ionviewwillenter-solved/167922/11) is how I do it.

---

_[View the full topic](https://forum.ionicframework.com/t/pass-data-from-html-page-to-ts-file/205426)._
