Cannot Render the content by using Angular7 SSR
See original GitHub issueAfter using Angular7 SSR , I click the browser and View the page source . Cannot show the value get from the contentful .
Expected Behavior
Click the view page source at the browser. It should show all the value that receive from contentful
Actual Behavior
All the value from contentful at the page source is empty
Possible Solution
Steps to Reproduce
Context
Environment
Angular 7 . Angular universal
- Language Version: V10.4.1
- Package Manager Version: 6.4.1
- Browser Version: Version 70.0.3538.102 (Official Build) (64-bit)
- Operating System: Mac OS 10.14
- Package Version: v7.0.5
- Which API are you using?: Delivery
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Server side rendering not working in Angular 7
You can try using a snapshot build of @angular-devkit/build-angular ... then rebuild your project npm run build:ssr.
Read more >Server-side rendering (SSR) with Angular Universal
This guide describes Angular Universal, a technology that renders Angular applications on the server. A normal Angular application executes in the browser, ...
Read more >Server-side Rendering (SSR) with Angular Universal
Any new views required in the application can be created by using JavaScript solely on the client. Besides this, the request-response cycle still...
Read more >Angular Server-side rendering (SSR) with Angular Universal
A typical Angular application executes in the browser, rendering pages in the DOM in response to user actions. Angular Universal executes on the...
Read more >Pre-rendering Angular Applications - Blog - Brecht Billiet
SSR executes the Angular application on the server. That way the server will actually serve the compiled content in a way that search...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maintainers, can you please expose the Axios adapter config option? This will allow Angular developers to write a custom adapter for Axios based on Angular’s HttpClient. This will allow us to use SSR with contentful in the Angular platform. At some point, a nice developer might even publish an axios angular adapter 😃.
Example using just plain Axios that worked is below. Should be fine for contentful.
@r3plica You should be able to define your custom (angular) axios adapter when creating the contentful client. (see here)