Comments (1)
Hey Daniel
Sorry for my late reply. Sadly no, all general limitations of Angular Universal apply because AngularJ Universal is using them under the hood:
- Never ever access the raw DOM like setting styles, installing listeners etc. Angular itself abstracts these manipulations and provides the Renderer class https://angular.io/api/core/Renderer that provides a wrapper API and is also respected by server side rendering. The problem is, that third party libraries like jQuery/Other DOM libraries don't rely on this class --> Check if you are running on the server or client side via isBrowser/isNode
- No access to local storage
Of course you can replay the events via the Renderer and some custom code, but never access them before hand. Let's say a user has logged in to a website and stores his JWT access token in local storage (Which you shouldn't by the way), you will never be able to access this token on the server so easily (Of course with a lot of hacked JavaScript...but that won't work for all use cases).
You can find a pretty good article here. More or less all problems also apply for the Java abstraction: https://malcoded.com/posts/server-rendering-pitfalls
from angularj-universal.
Related Issues (20)
- Cyrillic symbols with server side rendering HOT 3
- Release 0.0.2 HOT 2
- feature request: Add Lazy Loading module support HOT 2
- bug: Please delete temp files HOT 2
- Once the project is imported, how can I run it? HOT 3
- No provider for InjectionToken MODULE_MAP! with lazy loading HOT 3
- Getting a login page HOT 1
- Question: How to use parameterized routes and wildcard routes HOT 10
- Does graalvm help us? HOT 5
- Implement an upcomming TCP/gRPC renderer in Angular Universal HOT 1
- How to use Angular Universal with Spring Backend HOT 4
- How to use this library with angular 6 HOT 1
- Unable to start spring boot with angularj-universal "window is not defined" HOT 1
- Rendering takes too long HOT 6
- Getting the Request server side HOT 10
- Segmentation fault when running angularj in docker container HOT 3
- LazyModule using Socket engine HOT 2
- angular 8 not working HOT 6
- This is still alive HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularj-universal.