Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS - server-side rendering

As you may know, AirBnb opensourced Rendr (http://nerds.airbnb.com/weve-open-sourced-rendr) which should enable server-side rendering of Backbone apps. This is cool, because one can run the first "iteration" of template rendering on the server and the client gets fully rendered HTML document plus the whole JS app. It greatly reduces time-to-display and can get us rid of other server-side templating systems.

So, have someone managed to render AngularJS with jsdom or ZombieJS? These dom/browser emulations on Node.js should in theory be enough for simple server-side Angular templating, but results I found googling it were not very conclusive.

like image 663
tillda Avatar asked Apr 26 '13 09:04

tillda


People also ask

Is AngularJS a server-side language?

AngularJS is a client-side JavaScript framework - use it with whatever you feel more comfortable with on the server.

Is React server-side rendering or client-side?

React along with other framework like angular and vue. js are traditional client side framework ,they run in browser but there are technology to run this framework on server side, and next.

What is server-side rendering with example?

Server-side rendering is when content on your webpage is rendered on the server and not on your browser using JavaScript. For example, with a typical PHP or WordPress site, the page is loaded from content that is coming via HTTP, which was rendered on the server and comes as fully rendered HTML.

Does Next JS use server-side rendering?

Next. js has two forms of pre-rendering: Static Generation and Server-side Rendering.


1 Answers

Here is another solution: https://github.com/ithkuil/angular-on-server

wiki for details

Update from author of that repo: that was about 6 years ago (at the time of this edit). At this point, people should probably be using https://angular.io/guide/universal or just https://prerender.io/

like image 165
outluch Avatar answered Sep 25 '22 22:09

outluch