From caea5815897c5b6e8477831d86c10dfdaaedb73a Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 10 Mar 2016 14:57:55 -0400 Subject: [PATCH] Move SettingsController to settings module --- lib/browser/app.js | 4 ---- lib/browser/modules/settings.js | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/browser/app.js b/lib/browser/app.js index 24ba3e63..cb6c0f79 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -203,10 +203,6 @@ app.controller('AppController', function( }; }); -app.controller('SettingsController', function(SettingsService) { - this.storage = SettingsService.data; -}); - app.controller('NavigationController', function($state) { this.isState = $state.is; this.open = shell.openExternal; diff --git a/lib/browser/modules/settings.js b/lib/browser/modules/settings.js index 907c7271..5c47c76c 100644 --- a/lib/browser/modules/settings.js +++ b/lib/browser/modules/settings.js @@ -40,3 +40,14 @@ settings.service('SettingsService', function($localStorage) { }); }); + +settings.controller('SettingsController', function(SettingsService) { + + /** + * @summary Settings data + * @type Object + * @public + */ + this.storage = SettingsService.data; + +});