use scope only

This commit is contained in:
Javier 2016-06-10 09:35:44 -03:00
commit e58ac3bd58
2 changed files with 7 additions and 12 deletions

View file

@ -1,16 +1,12 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesLanguageController',
function($scope, $log, $timeout, configService, profileService, uxLanguage, walletService, go) {
function($scope, $log, configService, profileService, uxLanguage, walletService, go) {
this.init = function() {
this.availableLanguages = uxLanguage.getLanguages();
$scope.data = {
currentLanguage: uxLanguage.getCurrentLanguage()
};
};
$scope.availableLanguages = uxLanguage.getLanguages();
$scope.currentLanguage = uxLanguage.getCurrentLanguage();
this.save = function(newLang) {
$scope.save = function(newLang) {
var opts = {
wallet: {
settings: {