Use the angular ui router from the sample at http://angular-ui.github.io/ui-router/build/angular-ui-router.js