Having issue showing data on html page

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:
fenced off by triple backticks
  • don’t rely on lifecycle events to manage data freshness, see this post;
  • 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