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
2 answers

How could do some http requests just from the server side in Angular Universal

I'm implementing Angular Universal over an Angular project to hide some http requests, but in my research, I found that I can't hide those with the way provided by Angular. Did someone try to do the http request in the express engine an retrieve the…
AndresSp
  • 176
  • 3
  • 16
0
votes
1 answer

Problem applying `Angular Universal` to an existing 8.2 project

We just recently updated our project to Angular 8.2 and when I do ng add @nguniversal/express-engine --clientProject universal I get Client app universal not found. and none of files mentioned in the guide are added or updated and the package.json…
user223364
  • 469
  • 1
  • 4
  • 14
0
votes
1 answer

Angular Universal + Asp Net Core: how to serve static file in virtual directory

I have an Angular Universal + Asp Net Core App. I need to serve static file from a "virtual directory". On ASP NET side I have: app.UseFileServer(new FileServerOptions { FileProvider = new…
gidanmx2
  • 469
  • 1
  • 9
  • 24
0
votes
1 answer

What should be in .htaccess for Angular Universal app on Apache web host server?

This question is related to the question I asked here, but this is a more specific question, so I'm asking it separately. I have an Angular Universal web app that I want to deploy on an Apache web server. I installed pm2 to start the app and keep it…
Isoldhe
  • 300
  • 1
  • 7
  • 20
0
votes
1 answer

Angular universal specific route does not load

I'm having a weird issue in Angular Universal where all routes work properly when they are being accessed with a full-page entry except one! Here is my current configuration: App Routes: const routes: Routes = [{ path: '', pathMatch: 'full', …
George Karanikas
  • 1,244
  • 1
  • 12
  • 38
0
votes
1 answer

Express application as a IIS subsite fails to load static files

I'm setting up an Angular Universal application with Express in IIS, with a reverse proxy as described in this article https://dev.to/petereysermans/hosting-a-node-js-application-on-windows-with-iis-as-reverse-proxy-397b. If i set my IIS site up as…
Nait
  • 1,055
  • 1
  • 14
  • 19
0
votes
0 answers

Deployment Angular7 project to Heroku issue

I have project I've create by using Angular Universal Now I want't to deploy it to heroku but I got some difficulties with package.json After use git push heroku master I'm getting the next error: A module may be missing from 'dependencies' in…
dor malka
  • 1
  • 5
0
votes
1 answer

Deploying Angular Universal app to Firebase Functions returns error

I'm currently trying to deploy my Angular Universal App to Firebase Functions & Hosting. Therefore I'm following this tutorial. Error: Error parsing triggers: Cannot find module 'require("./server/main")' Require stack: -…
Tom
  • 3,672
  • 6
  • 20
  • 52
0
votes
1 answer

set json file as route in Angular Universal

I am new to angular universal and I am trying to expose a json file in route. I want to expose a json file via a route like the code below. How can I achieve this in angular universal? // Redirect root path to /atlassian-connect.json, //…
Umar
  • 55
  • 1
  • 7
0
votes
2 answers

Running Raygun.io with Angular Universal

I'm adding Raygun.io APM to our Angular 8 app with Angular Universal. It is known that raygun.io has a client side javascript library and to add this to a Angular with Universal, DOM window API must be created. This can be done using domino npm…
0
votes
0 answers

Angular Universal serve:ssr Server Side Render Builder

I want ssr on dev mode to reproduce production server render during development, And i can't setup ssr and ng serve both running because of live reload will not work on ssr port. Server side render not working on development mode yet with hot…
0
votes
2 answers

How to replace Angular module at build time with AOT?

I need to be able to replace a fairly large module in my Angular app with a very simple one in order to make my Server Side Rendering build load (avoiding all the unnecessary requires for a component that's too rich to work on the server anyway).…
RushPL
  • 4,732
  • 1
  • 34
  • 44
0
votes
0 answers

How do I compress/minify component css at Angular Universal?

I have an Angular app which uses Universal SSR and I've noticed that HomeComponent which contains scss is not compressed when I have it uploaded and rendered on a node.js server. The matter is that I have the scss compressed at my…
Angry Beaver
  • 415
  • 1
  • 6
  • 18
0
votes
0 answers

Angular/Universal app - https request( this.httpClient.get ) is not executing on a server

I try to develop an Angular/Universal app and have encountered the issue - when I have my build uploaded to a Node.js server the app doesn't render my dynamic HTML(static only) as HTTP requests are not executing at all. I tried to build the Hero…
Angry Beaver
  • 415
  • 1
  • 6
  • 18
0
votes
0 answers

Angular Universal npm run serve:universal getting error: ERROR ReferenceError: $ is not defined

I built an Angular Universal project from Angular 5, and when I run npm run serve:universal I'm getting error: "ERROR ReferenceError: $ is not defined" at following files: at new n (\dist-server\main.bundle.js:1:4483078) at _createClass…
Hai Dinh
  • 1,499
  • 2
  • 17
  • 30
1 2 3
99
100