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

109
Vistas
How to render a EJB in Angular from Node API

I have a ejb file and I'm rendering that file from Node.js Express API. I am trying to render that response in Angular. But I'm getting empty page while rendering the response. I have consoled the response where I could see the ejb code as response.

Code

Node.js

app.set('view engine', 'ejs')
app.get('/',function(req,res){    
  res.render('index')
});

Angular

Service

  getHomepage(): Observable<any> {
    return this.http.get('http://localhost:3000', { responseType: 'text' });
  }

TS

ngOnInit() {
    this.userService.getHomepage().subscribe(
      (data:(any)) => this.library = data 

    );
}

HTML

<div [innerHTML]="library"></div>
about 4 years ago · Santiago Trujillo
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