Can anyone tell the best way how can we access the browsers local storage in Server Side Rendering in Angular 2? I found out a stackoverflow related to this : localStorage is not defined (Angular Universal) . But i didn't get the concept of providers used in it. Can anyone explain in brief what is the exact meaning of those providers used in main.browser.ts and main.node.ts?
Also i found a module angular-2-localstorage. So which is the best approach to access the local storage in Server side?