1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00
OpenSTF/res/app/menu/menu-controller.js
2015-03-16 20:48:24 +09:00

17 lines
379 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
})
}