# Having issue showing data on html page

**URL:** <https://forum.ionicframework.com/t/having-issue-showing-data-on-html-page/194378>\
**Category:** Ionic Framework\
**Created:** [August 13, 2020, 5:35am UTC](https://forum.ionicframework.com/t/having-issue-showing-data-on-html-page/194378 "2020-08-13T05:35:59Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [August 14, 2020, 8:40pm UTC](https://forum.ionicframework.com/t/having-issue-showing-data-on-html-page/194378/9 "2020-08-14T20:40:20Z")

</div>

I have an extremely hard time believing that you followed my earlier advice, because you have a boatload of uninitialized properties. Other things that need attention:

- give everything proper types, instead of abusing `any`;
- format your code properly when posting, like so:

```auto
fenced off by triple backticks

```

- don’t rely on lifecycle events to manage data freshness, see [this post](https://forum.ionicframework.com/t/ionic-4-tab-to-page-then-back-to-tab-did-not-trigger-ionviewwillenter-solved/167922/11);
- get all of the firebase stuff out of pages and into services. pages should neither know nor care how information is actually fetched and stored;
- never use `var`: always `let` instead;
- write asynchronous code using functional programming style, which means eliminating all the writes to external state like `res1` and `res2`. communicate strictly using function parameters and return values

---

_[View the full topic](https://forum.ionicframework.com/t/having-issue-showing-data-on-html-page/194378)._
