diff --git a/Gruntfile.js b/Gruntfile.js index 887813e..b821fdd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -28,7 +28,7 @@ module.exports = function(grunt) { } }, dev: { - src: [ 'localStorageModule.js' ], + src: [ 'angular-local-storage.js' ], options: { jshintrc: '.jshintrc', } diff --git a/README.md b/README.md index 6a3adf9..4cb9148 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,15 @@ angular-local-storage An Angular module that gives you access to the browsers local storage -Remember to set your app name (settings.appPrefix) in the settings at the beginning of localStorageModule.js. +Remember to set your app name (settings.appPrefix) in the settings at the beginning of angular-local-storage.js: + +```javascript +angular.module('LocalStorageModule').value('prefix', 'myPre'); +angular.module('testApp', ['LocalStorageModule']) + .config(function ($routeProvider) { + .... +}); +``` To do: - Add tests @@ -22,4 +30,4 @@ angular.module('yourModule', ['LocalStorageModule']) localStorageService.add('Favorite Sport','Ultimate Frisbee'); }]); ``` -Check out the full demo and documentation at http://gregpike.net/demos/angular-local-storage/demo.html \ No newline at end of file +Check out the full demo and documentation at http://gregpike.net/demos/angular-local-storage/demo.html diff --git a/bower.json b/bower.json index 7a1e055..337630e 100644 --- a/bower.json +++ b/bower.json @@ -5,12 +5,11 @@ "authors": [ "grevory " ], - "description": "An Angular module that gives you access to the browsers local storage", + "description": "An Angular module that gives you access to the browser's local storage", "main": "angular-local-storage.js", "keywords": [ "AngularJS", - "Local", - "Storage" + "Local Storage" ], "license": "MIT", "ignore": [ diff --git a/demo/demo.html b/demo/demo.html index 15bf0b4..d4e03c4 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -59,7 +59,7 @@
Dependencies:
JS Example
@@ -131,7 +131,7 @@ var YourCtrl = function($scope, localStorageService, ...) { - + diff --git a/test/karma.conf.js b/test/karma.conf.js index a3e93a2..494acc1 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -28,7 +28,7 @@ module.exports = function(config) { files: [ bower + 'angular/angular.js', bower + 'angular-mocks/angular-mocks.js', - 'localStorageModule.js', + 'angular-local-storage.js', 'test/spec/**/*.js' ],