Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda