Comments (2)
Hi
localStorage does not exist on the server, you need to test which platform you are running before use localStorage, you can only use local storage on the browser, look the following example:
https://gist.github.com/evertonrobertoauler/aed3f2f50694c524d880ad1a5c5838f7
from cli-universal-demo.
@evertonrobertoauler thanks
from cli-universal-demo.
Related Issues (20)
- Adding app.browser.module HOT 2
- canonical link href server side rendering HOT 1
- http transfer state HOT 2
- Is there any way to use angular-cli to generate components HOT 3
- Is there any way to use cookie values in the server? HOT 2
- Home Page does not load after adding ngb-carousel HOT 6
- ngb-X components are not loaded (@ng-bootstrap branch) HOT 1
- Angular Universal not working with angular material, giving this issue. HOT 1
- Import global extneral dependency (i.e google maps) and using in input decorattor HOT 1
- listen in 0.0.0.0 HOT 2
- language change print out in html HOT 6
- Feature Request : Watch HOT 1
- Deploying the universal app HOT 1
- Can't resolve './$$_gendir/ HOT 7
- Meta Tags not working HOT 3
- AppServerModuleNgFactory not found HOT 1
- TypeError: Cannot read property 'create' of undefined HOT 2
- build error with loadChildren modules
- getting ReferenceError: window is not defined
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 cli-universal-demo.