Home > front end >  Can Angular universal be rendered completely on server side?
Can Angular universal be rendered completely on server side?

Time:04-01

Can an entire Angular project (set up correctly without references to DOM and only using SSR compatible libraries) be rendered 100% from the server? I know some QOL improvements will be gone, but wondering if the site will work with JavaScript disabled. Basic functionality and visual integrity at least.

CodePudding user response:

For sure: No. Because all things we see on the browser are: HTML CSS JS. While JS is the most important part so it can't work.

CodePudding user response:

Just to clear up the terminology used here, my interpretation of the question is "Can I serve web pages that don't require client side javascript".

Yes, of course. Just don't use any features that require client side javascript. You can just serve static html and css at different endpoints, and you can navigate with <a> tags to different endpoints.

You're just limited to what you can do with purely html and css, which is actually a lot nowadays.

From the Angular Universal docs https://angular.io/guide/universal:

Angular Universal can generate a static version of your application that is easily searchable, linkable, and navigable without JavaScript.

  • Related