Move SettingsController to settings module

This commit is contained in:
Juan Cruz Viotti 2016-03-10 14:57:55 -04:00
parent 673e82e530
commit caea581589
2 changed files with 11 additions and 4 deletions

View File

@ -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;

View File

@ -40,3 +40,14 @@ settings.service('SettingsService', function($localStorage) {
});
});
settings.controller('SettingsController', function(SettingsService) {
/**
* @summary Settings data
* @type Object
* @public
*/
this.storage = SettingsService.data;
});