Finally Control button is implemented.

Also the route /control tries to use the last used device.
This commit is contained in:
Gunther Brunner
2014-09-11 18:15:16 +09:00
parent f0d52bf2c6
commit dbfbe53b37
7 changed files with 64 additions and 31 deletions

View File

@@ -1,8 +1,13 @@
module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
$location, ExternalUrlModalService) {
SettingsService.bind($scope, {
target: 'lastUsedDevice'
})
SettingsService.bind($rootScope, {
target: 'platform', defaultValue: 'native'
target: 'platform',
defaultValue: 'native'
})
$scope.$on('$routeChangeSuccess', function () {