marcj / angular2-localstorage

Angular 2+ decorator to save and restore variables/class properties to HTML5 LocalStorage automatically.
302 stars 107 forks source link

LocalStorage 0.4.0 with Angular2 FINAL #61

Open SenanuFC opened 8 years ago

SenanuFC commented 8 years ago

Just upgraded my project from RC5 to the FINAL. Deleted the 'node modules' folder and run npm install. ~flawless~

NOT!!! Only have this to solve.

Error:(46, 9) TS2305: Module '"C:/Users/scrat/Documents/GitHub/ang-ts - Admin VWifi/node_modules/@angular/core/src/facade/lang"' has no exported member 'Type'.

Error:(47, 9) TS2305: Module '"C:/Users/scrat/Documents/GitHub/ang-ts - Admin VWifi/node_modules/@angular/core/src/di"' has no exported member 'provide'.

clementbrunel commented 8 years ago

Same problem here. Some Branches have done the upgrade https://github.com/marcj/angular2-localstorage/network but i would like to stay with master.... The ownership of the repo has been transferred?

dranes commented 8 years ago

@SenanuFC @clementbrunel the package has been updated to Angular final release like 4 hours ago.

clementbrunel commented 8 years ago

I think you should publish a new release with this tag :)

merobal commented 8 years ago

@dranes @marcj +1 I'm also waiting for a new (npm) release with your update.

kosbr commented 8 years ago

Could you show me the way how to import angular2-localstorage to angular 2.0.0 application? I expect it to have some module for import. imports: [ LocalStorageModule]

albertosam commented 8 years ago

+1 I'm also waiting for a new (npm) release with your update

Gillardo commented 8 years ago

any news on this?? I would like to use this module in my app

marcj commented 8 years ago

I'm going to invest some time tonight CEST.

dranes commented 8 years ago

@kosbr in you app.module.ts import LocalStorageService and LocalStorageSubscriber

import { LocalStorageService, LocalStorageSubscriber } from 'angular2-localstorage/LocalStorageEmitter';

and then in providers

providers: [ LocalStorageService]

it worked for me

kmoroe22 commented 8 years ago

@marcj Hey there, any news on the new release? The latest npm registry version is 0.4.0 and I am still getting the same bug as @SenanuFC.

owen26 commented 7 years ago

Anyone who's still struggling with the various compatibility issues for this project, consider use the following one instead. It took me a while to find this replacement. https://github.com/PillowPillow/ng2-webstorage

chopada commented 7 years ago

See solution of this issue = > has no exported member 'provide' or 'Type'