question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server side rendering with Angular Universal

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior Console errors while startup with Angular Universal app

Expected behavior Usual server-side rendering application

Reproduction of the problem

  1. Create app with Angular Universal https://angular.io/guide/universal
  2. install ngx-smart-modal as usual
  3. Try to run application

What is the motivation / use case for changing the behavior? Possibility to use ngx-smart-modal in applications with server-side rendering (without browser-specific api)

Please tell us about your environment: NodeJS

  • Smart Modal version: 0.8.x 7.1.1

  • Angular version: 2.0.x ~7.2.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] NodeJS

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Solution: Using browser-specific api: document, window with special wrappers; Official angular documentation: https://github.com/angular/universal/blob/master/docs/gotchas.md https://angular.io/api/common/DOCUMENT

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
temaptzcommented, Jul 24, 2019

Hi, i made changes to associated PR and fixed issues.

1reaction
jelenaDedskincommented, Jun 14, 2019

Any update on this? When it will be released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server-side rendering (SSR) with Angular Universal
This guide describes Angular Universal, a technology that renders Angular applications on the server. A normal Angular application executes in the browser, ...
Read more >
Angular Universal & Server-side rendering Deep-Dive - Medium
Angular Universal is the process of server-side rendering (SSR) your application to HTML on the Server (ie: Node.js).
Read more >
Server-Side Rendering (SSR ) with Angular Universal
Angular Universal is the process that manages to render the static HTML page on the server and further return to the client-side. In...
Read more >
Angular Universal: Complete Practical Guide
Another reason for doing server-side rendering is to make our application more search engine friendly. Today, most search engines take the title ...
Read more >
Server Side rendering with Angular universal 14 - Ganatan
Angular Universal can generate static pages through a process called Server side rendering (SSR). The procedure to follow is detailed on the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found