0

How to calculate each and every page height from top to bottom in angular ? This syntax work in JavaScript but give error in angular

console.log( (document.height !== undefined) ? document.height : document.body.offsetHeight+'px');
Zia Khan
  • 188
  • 2
  • 9

1 Answers1

0

Try this instead:

console.log(window.innerHeight);
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 28 '21 at 07:58