<!DOCTYPE html>
<html>
<head>
<script src="//npmcdn.com/angular/angular.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router/1.0.0-beta.1/angular-ui-router.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="demonstrateissue">
<div ui-view></div>
</body>
</html>
var app = angular.module('demonstrateissue', ['ui.router']);
app.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/home')
$stateProvider.state({
name: 'home',
url: '/home',
template: 'Home.',
controller: function($scope) { }
});
});
app.run(function($rootScope, $state, $location, $transitions) {
$transitions.onSuccess({from: '*.*', to: '*.*'}, function(transition) {
transition.getResolveValue('foo');
});
});