【发布时间】:2016-12-07 04:21:04
【问题描述】:
谁能告诉我如何在 Angular2 中为 IE9+ 使用本地存储? 我已经尝试过本教程https://medium.com/@blacksonic86/angular-2-authentication-revisited-611bf7373bf9#.h42z63t9v,但我的 Angular 2 无法识别
import localStorage from 'localStorage';
它给了我这个错误
Cannot find module 'localStorage'.
我知道 Angular2 不支持 IE9,但是,有一个很好的解决方法。
【问题讨论】:
标签: angular local-storage jwt