Sending basic control commands. Angular routing is hard.

This commit is contained in:
Ben Vanik
2013-12-23 16:13:16 -08:00
parent 475ddc1fcf
commit dc48b0a85a
7 changed files with 246 additions and 54 deletions

View File

@@ -98,13 +98,11 @@ module.config(function($stateProvider, $urlRouterProvider) {
onExit: function() {}
});
$stateProvider.state('session.code.function', {
url: '/:module/:function',
url: '/:function?a',
templateUrl: 'assets/ui/code/function-view.html',
controller: function($scope, $stateParams) {
$scope.moduleName = $stateParams.module;
$scope.functionAddress = parseInt($stateParams.function, 16);
$scope.$emit('xxx');
$scope.$broadcast('yyy');
$scope.highlightAddress = parseInt($stateParams.a, 16);
},
onEnter: function() {},
onExit: function() {}