Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
how can i make an angular app (embeded on diffrent sites) span all the way to the bottom of the page

I developed a component using angular that I embed in clients sites. I want the component to span minimally until the end of the viewport. each of the sites has a different size header and the headers doesn't share a tag/class/id. I need to add min-height value to the app that equals to viewport height - header height and that way, even if the content of my component wont be enough to reach the bottom of the viewport, the min-height will enforce it spanning all the way to it.

previously I handled those problems with the following JS code

var component= document.getElementById("component")
component.minHeight = Window.innerHeight - component.getBoundingClientRect().top

but that doesn't work in angular...

any idea how can I make this work?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

    #component {
    min-height: 100vh;
}

In css set min-height to 100vh and parent component too.

I think it's simpler with css than javascript or typescript.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!