Skip to content

Commit

Permalink
local storage saves current slide number
Browse files Browse the repository at this point in the history
  • Loading branch information
nicangeli committed Mar 9, 2014
1 parent 1d19dae commit cf10194
Show file tree
Hide file tree
Showing 13 changed files with 762 additions and 4 deletions.
36 changes: 36 additions & 0 deletions bower_components/angular-local-storage/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "angular-local-storage",
"version": "0.0.1",
"homepage": "http://gregpike.net/demos/angular-local-storage/demo.html",
"authors": [
"grevory <[email protected]>"
],
"description": "An Angular module that gives you access to the browser's local storage",
"main": "angular-local-storage.js",
"keywords": [
"AngularJS",
"Local Storage"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"devDependencies": {
"angularjs": "*",
"angular-mocks": "~1.2.1"
},
"_release": "0.0.1",
"_resolution": {
"type": "version",
"tag": "0.0.1",
"commit": "4eff3c2377404a472909588e49abd647f2ac3ab8"
},
"_source": "git://github.com/grevory/angular-local-storage.git",
"_target": "~0.0.1",
"_originalSource": "angular-local-storage",
"_direct": true
}
64 changes: 64 additions & 0 deletions bower_components/angular-local-storage/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = function(grunt) {
'use strict';

// Load the grunt tasks
require('load-grunt-tasks')(grunt);

// Time the grunt tasks
require('time-grunt')(grunt);

grunt.initConfig({
karma: {
options: {
autowatch: true,
browsers: [
'PhantomJS'
],
configFile: 'test/karma.conf.js',
reporters: ['dots'],
singleRun: false
},
unit: {}
},
jshint: {
grunt: {
src: ['Gruntfile.js'],
options: {
node: true
}
},
dev: {
src: ['angular-local-storage.js'],
options: {
jshintrc: '.jshintrc',
}
},
test: {
src: ['test/spec/**/*.js'],
options: {
jshintrc: 'test/.jshintrc',
}
}
},
uglify: {
dist: {
files: {
'angular-local-storage.min.js': 'angular-local-storage.js'
}
}
}
});

grunt.registerTask('test', [
'karma'
]);

grunt.registerTask('default', [
'jshint',
'test'
]);

grunt.registerTask('dist', [
'uglify'
]);
};
8 changes: 8 additions & 0 deletions bower_components/angular-local-storage/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Angular Local Storage
Copyright 2013 Gregory Pike

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 changes: 35 additions & 0 deletions bower_components/angular-local-storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
angular-local-storage
=====================

An Angular module that gives you access to the browsers local storage

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

Example use:

```javascript
angular.module('yourModule', ['LocalStorageModule'])
.controller('yourCtrl', [
'$scope',
'localStorageService',
function($scope, localStorageService) {
// Start fresh
localStorageService.clearAll();
localStorageService.add('Favorite Sport','Ultimate Frisbee');
}]);

/*
To set the prefix of your localStorage name, you can use the setPrefix method
available on the localStorageServiceProvider
*/
angular.module('yourModule', ['LocalStorageModule'])
.config(['localStorageServiceProvider', function(localStorageServiceProvider){
localStorageServiceProvider.setPrefix('newPrefix');
}]);
```
Check out the full demo and documentation at http://gregpike.net/demos/angular-local-storage/demo.html

To do:
- Add tests
- Expand Readme

Loading

0 comments on commit cf10194

Please sign in to comment.