Save user settings to the database and embed them to the template for fast access.

This commit is contained in:
Simo Kinnunen
2014-07-04 22:59:29 +09:00
parent 332c7b6106
commit e13fc6701f
11 changed files with 152 additions and 141 deletions

View File

@@ -1,17 +1,2 @@
require('localforage')
require('angular-localForage')
module.exports = angular.module('stf/settings', [
'LocalForageModule'
])
.config(['$localForageProvider', function ($localForageProvider) {
$localForageProvider.config({
driver: 'localStorageWrapper',
name: 'stf-v0',
version: 1.0,
storeName: 'settings',
description: 'STF Local Settings'
})
}])
module.exports = angular.module('stf/settings', [])
.factory('SettingsService', require('./settings-service'))