Created
June 21, 2013 22:46
-
-
Save hunterloftis/5834893 to your computer and use it in GitHub Desktop.
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
angular | |
.module('test.routes', ['ui.state']) | |
.config(function($routeProvider, $stateProvider) { | |
// automatically redirect to #/test | |
$routeProvider | |
.otherwise({ redirectTo: '/test' }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Questions?
do you have a '/test' route provided?
are you using ng-view?
if not, you could just use this in a main controller - inject $location
todomvc example