Questions tagged [angular-universal]

Angular Universal is a server-side rendering module for Angular applications.

Better Perceived Performance

First time users of your application will instantly see a server rendered view which greatly improves perceived performance and the overall user experience. According to research at Google, the difference of just 200 milliseconds in page load performance has an impact on user behavior.

Optimized for Search Engines

Although Googlebot crawls and renders most dynamic sites, many search engines expect plain HTML. Server-side pre-rendering is a reliable, flexible and efficient way to ensure that all search engines can access your content.

Site Preview

Ensure that Facebook, Twitter and all other social media apps correctly display a preview image of your app.

Latest Stable Version:

angular 9.x  - (February 6, 2020)

Bits

1755 questions
0
votes
0 answers

Can I update index.html after start the Angular universal server?

I have requirement to convert a server-side rendering project to client-side render, but I have to generate/render header html from existing tech. My plan to render header part using node-express and attach to index.html in each server hit. Once…
0
votes
1 answer

How to manage different Google Analytics tracking codes on web page

Now I'm building the blog site to introduce various brands using Angular universal and am going to implement the GA tracking when the user visit the blog for each brand. The Super Admin has GA tracking id for whole site and also each blog has own…
0
votes
1 answer

Angular Universal with Route Param when SSR

I've got a strange issue with my Angular Universal App (v8.1.1). I can't see any related current or past issues in the Universal repo. A simple example of my code: routes: export const routes = [ { path: '', component: ParentComponent, …
ewan
  • 454
  • 1
  • 4
  • 9
0
votes
1 answer

Open Angular Universal app by link without port

I’ve built an Angular Universal application, how to start it via a direct link, for example site.com, it only starts now if I add the site.com:4000 port to the address, what needs to be done or how to configure it to open without a port thanks
D R
  • 3
  • 1
0
votes
1 answer

ReferenceError: HTMLAnchorElement is not defined Angular 7 Universal

I am working on an angular 7 application with serverside rendering and trying to download pdf files using filesaver plugin. I am able to download the file on port but when I am building the app, it is throwing me this error: ReferenceError:…
User0706
  • 1,067
  • 1
  • 18
  • 34
0
votes
1 answer

Dynamically added noscript tag doesn't show in view source page Angular Universal

I append noscript tag as body's child, when I run app with angular universal it doesn't show tag in body, but I can see it on inspect element I need to add this noscript tag not in app-root, I need to add it dynamically and as first child of body…
0
votes
1 answer

Angular HttpResponseError; status 0

I have an issue with this type of error logging into the pm2 log file. There is no errors in browser, all API request statuses are 200. But, only on first use of application (when refresh page with browser button, or first time type URL) the error…
Vlada Veljkovic
  • 141
  • 1
  • 6
0
votes
0 answers

Angular 8 Universal - server.js file size issue while making a server build

When I'm making a server build Webpack every time just adds the server part into the existing server.js file under my dist folder. Say, the file size is 14MB, after executing the build:ssr command the files size will be 28MB and so on. Then I'm…
Angry Beaver
  • 415
  • 1
  • 6
  • 18
0
votes
1 answer

Angular Universal: Exclude request from server

I'm playing with Angular Universal for a while now and I'd like to exclude a request from being rendered on the server. Using TransferHttpCacheModule every get request will be rendered on the server, but sometimes it's useful that specific requests…
nncl
  • 128
  • 3
  • 9
0
votes
0 answers

Angular Router Issue

In Router am using some params in my router url, But actually if i add only params without any static data for more than one component, its not loading correctly. Below my code.... const routes: Routes = [ { path:'', redirectTo:"/",…
0
votes
1 answer

Angular Universal With Window Innerwidth

Am Using Window.Innerwidth in my Angular Project, Actually code is working, But My problem is when am trying to implement to Angular universal. What and all are i wrote inside this window.innerwidth. its not showing view source. My Code is like…
Abijith Ajayan
  • 238
  • 3
  • 17
0
votes
1 answer

serving files on the server with express.js for angular8 ssr

I'm using A8 ssr or angular universal, with express.js, however I don't know if this is the correct setup to server all the files, on my server.ts I have…
jcdsr
  • 1,123
  • 1
  • 17
  • 35
0
votes
0 answers

Using msal in Angular with Server side rendering

I've been using msal.js for authentication in my Angular application. This is working fine for development builds using ng serve. Unfortunately this library gives me an error when I try to run a server build using node. This build is generated using…
Mikey123
  • 1,201
  • 2
  • 12
  • 23
0
votes
1 answer

Angular SSR Canonicalization

Am trying to do Angular SSR with canonical URL. AM using the below code, Actually this is working fine with HTTP links. My issue is Canonical url is showing HTTP link and actual my Website is in HTTPS. How to fix this issue..??? let link:…
0
votes
1 answer

Angular universal not rendering async content

Angular Universal not rendering async content (like api calls) before page render. only leaves empty places like "" already tried to copy all universal-starter configuration to an existing project but still same result. i expect the page to render…
Naor Dahan
  • 21
  • 3
1 2 3
99
100