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

110
Views
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
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!