Created
November 17, 2014 19:38
-
-
Save thatmarvin/1190fd91a1d9b181ce21 to your computer and use it in GitHub Desktop.
ui.router erroring out in IE8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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