Skip to content

task: fix wrong example codes #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# Angular2 @LocalStorage
# Angular @LocalStorage

This little Angular2/typescript decorator makes it super easy to save and restore *automatically* a variable state in your
This little Angular/typescript decorator makes it super easy to save and restore *automatically* a variable state in your
directive (class property) using HTML5' LocalStorage.

## Seeking new maintainer

This project is not maintained. Please consider taking it over. More information at https://github.com/open-source-chest/take-it-over.
Compatible with angular 4.0.0.

## Use

1. Download the library using npm or github: `npm install --save angular2-localstorage`
1. Download the library using npm or github: `npm install --save angular-localstorage`
2. Import the WebStorageModule in your app module:
```typescript
import {Component} from "angular2/core";
import {WebStorageModule, LocalStorageService} from "angular2-localstorage";
import {Component} from "@angular/core";
import {WebStorageModule, LocalStorageService} from "angular-localstorage";

@NgModule({
import: [WebStorageModule]
@Component({
imports: [WebStorageModule],
providers: [LocalStorageService]
})
export class AppModule {}
Expand All @@ -26,7 +23,7 @@ This project is not maintained. Please consider taking it over. More information

3. Use the `LocalStorage` decorator
```typescript
import {LocalStorage, SessionStorage} from "angular2-localstorage/WebStorage";
import {LocalStorage, SessionStorage} from "angular-localstorage/WebStorage";

class MySuperComponent {
@LocalStorage() public lastSearchQuery:Object = {};
Expand Down
1 change: 1 addition & 0 deletions dist/decorator/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/decorator/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/decorator/webstorage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/decorator/webstorage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/service/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/service/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions dist/service/webstorage.service.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/service/webstorage.service.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/utility/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utility/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/utility/webstorage.utiltiy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading