https://github.com/helderberto/angular-session-manager
[ARCHIVED] 🔑 Angular 1: Service to manage session.
https://github.com/helderberto/angular-session-manager
angular angular1 localstorage session
Last synced: 5 months ago
JSON representation
[ARCHIVED] 🔑 Angular 1: Service to manage session.
- Host: GitHub
- URL: https://github.com/helderberto/angular-session-manager
- Owner: helderberto
- Archived: true
- Created: 2017-02-12T22:48:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T02:20:12.000Z (over 8 years ago)
- Last Synced: 2024-10-16T03:32:44.138Z (9 months ago)
- Topics: angular, angular1, localstorage, session
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular Session
Angular Session Manager
## How to Install
```
$ npm install --save-dev angular-session-manager
$ bower install angular-session-manager
```## How to Use
This module is an way to manage session storages.
Load module in your `app.js`, and set the configurations:
```
angular
.module('yourApp', ['session']);
.controller('mainController', ['session.localStorageManager', function($scope, LocalStorageService) {var objFromkey = LocalStorageService.getStorage('key');
var testObj = {
test: 'test'
};LocalStorageService.setStorage(testObj, 'testKey');
}]);
```