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

579
Views
Server side not render http requests [Angular Universal]

I have problem to get any staff from http request from apis when I do 'view source', it looks like that staff not comming from server.

So I can see static html in source but nothing from http requests....

Anyone know what can be a problem?

I am using universal-cli

Edit:

here is example of http call from my showcode.service.ts:

import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { environment } from '../../environments/environment';

@Injectable()
export class ShowcodeService {

  constructor(private http: Http) { }

  getCode(id): any{
     return this.http.get(environment.baseUrl + 'code/show/' + id)
        .map((response: Response) => response.json());
  };

}

Here is live example: http://pushsc.com/show/code/58bc83760a58d602a0b99d14 check source code of html... It render evertying expect things that comes from http...

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try update your angular to 4.0.0.

They fixed some bugs which was related to server side rendering.

about 4 years ago · Santiago Trujillo 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!