根据这个问题:https://github.com/marcj/angular2-localstorage/issues/50使用 angular-cli 的 localstorage 我需要更新 systemjs 以查看路径:
- node_modules/angular2-localstorage/dist/LocalStorageEmitter.js
- node_modules/angular2-localstorage/dist/WebStorage.js
我试过这样,但没有用
System.config({
paths: {
"LocalStorageEmitter": './node_modules/angular2-localstorage/dist/LocalStorageEmitter.js',
"WebStorage": './node_modules/angular2-localstorage/dist/WebStorage.js'
}
});
如何以正确的方式做到这一点?