Skip to content

Instantly share code, notes, and snippets.

@thatmarvin
Created November 17, 2014 19:38
Show Gist options
  • Save thatmarvin/1190fd91a1d9b181ce21 to your computer and use it in GitHub Desktop.
Save thatmarvin/1190fd91a1d9b181ce21 to your computer and use it in GitHub Desktop.
ui.router erroring out in IE8
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="//code.angularjs.org/1.2.25/angular.js"></script>
<script src="//rawgit.com/angular-ui/ui-router/0.2.12/release/angular-ui-router.js"></script>
<script>
angular.module('fooApp', [
'ui.router'
])
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider.state('bar', {
url: '/bar',
template: 'Yay'
});
$urlRouterProvider.otherwise('/bar');
});
</script>
</head>
<body ng-app="fooApp">
<div ui-view></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment