Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda