Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Angular rendered client side or server side?

Tags:

angular

I've thought Angular framework is rendered client side but after reading this article, I couldn't realize which part of Angular application is rendered in server side. I searched and read but I couldn't find out when an Angular application is built and served trough some web server like Nginx, How is rendered in server side?

like image 954
MTB Avatar asked Jan 01 '23 13:01

MTB


1 Answers

A normal Angular application executes in the browser, rendering pages in the DOM in response to user actions. Angular Universal executes on the server, generating static application pages that later get bootstrapped on the client. This means that the application generally renders more quickly, giving users a chance to view the application layout before it becomes fully interactive.

sourced from here

It can rendered in both the ways.

  1. SSR: Server-Side Rendering - rendering a client-side or universal app to HTML on the server
  2. CSR: Client-Side Rendering - rendering an app in a browser, generally using the DOM.

Rendering on the Web

like image 163
sibabrat swain Avatar answered Jan 03 '23 04:01

sibabrat swain