Files
stf/res/app/menu/menu-controller.js
Lukasz.Zeglinski d99a6e7a97 Separate device logs
2019-09-11 11:04:55 +02:00

19 lines
441 B
JavaScript

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