Search code examples
angularlocal-storageangular2-localstorage

angular2 - How to import LocalStorage


So I'm a newbie to Angular2 and I've been trying to follow this tutorial for authentification

when I import localstorage I get this error in the code editor

enter image description here

I guess it has to be installed first right? But I couldn't figure out how to

thank you.


Solution

  • There is no need to import localStorage. you can use it directly.