How to change/set the main view using Yeoman with Angular Fullstack
问题 I created a project using Yeoman (angular-fullstack). And now I would like to know how the change/set the main view to login.html. So normally when you start the application you first get the main view where you can chose to login or register. What I want is when the application start the page starts direct on the login.html 回答1: in your app.js file located at client\app\app.js , in the angular config add the following: $stateProvider .run(function ($state) { $state.go('login'); }); So it