Show only Web/Native when controlling.

This commit is contained in:
Gunther Brunner
2014-06-03 19:35:02 +09:00
parent 79b0d7f2ab
commit bad0ca9cc7
2 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,11 @@
module.exports = function MenuCtrl($scope, $rootScope, SettingsService) {
module.exports = function MenuCtrl($scope, $rootScope, SettingsService, $location) {
$rootScope.platform = 'native'
SettingsService.bind($rootScope, {
key: 'platform',
storeName: 'Platform'
})
$scope.$on('$routeChangeSuccess', function () {
$scope.isControlRoute = $location.path().search('/control') !== -1
})
}