Skip to content

Commit aef73ba

Browse files
committed
Updated Readme Docs
1 parent 3f3cd06 commit aef73ba

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular-local-storage
22
=====================
33

4-
An Angular module that gives you access to the browsers local storage, **v0.1.1**
4+
An Angular module that gives you access to the browsers local storage, **v0.1.2**
55

66
[![Build Status](https://secure.travis-ci.org/grevory/angular-local-storage.png?branch=master)](https://travis-ci.org/grevory/)
77

@@ -78,7 +78,6 @@ myApp.config(function (localStorageServiceProvider) {
7878
.setPrefix('yourAppName');
7979
});
8080
```
81-
<<<<<<< HEAD
8281
###setStorageType
8382
You could change web storage type to localStorage or sessionStorage<br/>
8483
**Default storage:** `localStorage`
@@ -310,9 +309,6 @@ myApp.controller('MainCtrl', function($scope, localStorageService) {
310309

311310
Check out the full demo at http://gregpike.net/demos/angular-local-storage/demo.html
312311

313-
##TO DO:
314-
- Expand Readme
315-
316312
##Development:
317313
Clone the project:
318314
```bash

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-local-storage",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"homepage": "http://gregpike.net/demos/angular-local-storage/demo.html",
55
"authors": [
66
"grevory <greg@gregpike.ca>"

dist/angular-local-storage.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* An Angular module that gives you access to the browsers local storage
3-
* @version v0.1.1 - 2014-10-07
3+
* @version v0.1.2 - 2014-10-10
44
* @link https://github.com/grevory/angular-local-storage
55
* @author grevory <greg@gregpike.ca>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -392,6 +392,8 @@ angularLocalStorage.provider('localStorageService', function() {
392392
return storageType;
393393
};
394394

395+
// Add a listener on scope variable to save its changes to local storage
396+
// Return a function which when called cancels binding
395397
var bindToScope = function(scope, scopeKey, def, lsKey) {
396398
if (!lsKey) {
397399
lsKey = scopeKey;
@@ -407,7 +409,7 @@ angularLocalStorage.provider('localStorageService', function() {
407409

408410
$parse(scopeKey).assign(scope, value);
409411

410-
scope.$watchCollection(scopeKey, function(newVal) {
412+
return scope.$watchCollection(scopeKey, function(newVal) {
411413
addToLocalStorage(lsKey, newVal);
412414
});
413415
};

dist/angular-local-storage.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-local-storage",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "An Angular module that gives you access to the browsers local storage",
55
"homepage": "https://github.com/grevory/angular-local-storage",
66
"main": "angular-local-storage.js",

0 commit comments

Comments
 (0)