app.controller("FlugBuchenCtrl", ["$scope", "$http", "$q", "$stateParams", "$state", function ($scope, $http, $q, $stateParams, $state) { $scope.vm = new FlugBuchenVM($scope, $http, $q, $stateParams, $state); }]);
function FlugBuchenVM(scope, http, q, stateParams, state) { […] this.stateParams = stateParams; this.state = state; this.goToNextState = function () { var current = this.state.current.name; switch(current) { case "flugbuchung.passagier": this.state.go("flugbuchung.flug"); break; case "flugbuchung.flug": this.state.go("flugbuchung.buchen"); break; } } }
[1] http://www.softwarearchitekt.at/post/2014/03/19/AngularJS-und-UI-Router-Routing-Parameter.aspx
[2] http://www.softwarearchitekt.at/post/2014/03/14/Mehrere-Views-pro-Template-in-AngularJS-mit-UI-Router.aspx
[3] http://www.softwarearchitekt.at/post/2014/03/10/Verschachtelte-Views-mit-AngularJS-und-UI-Router.aspx