Files
stf/res/app/menu/menu-controller.js
2016-01-19 23:08:33 +09:00

18 lines
378 B
JavaScript

module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
$location) {
SettingsService.bind($scope, {
target: 'lastUsedDevice'
})
SettingsService.bind($rootScope, {
target: 'platform',
defaultValue: 'native'
})
$scope.$on('$routeChangeSuccess', function() {
$scope.isControlRoute = $location.path().search('/control') !== -1
})
}