In my app I have this server-generated link: http://localhost:3000/people#/users
When I click on it I get redirected to the following HTML page with Angular UI-Router
script:
<a ui-sref="users">Users</a>
<a ui-sref="invitations">Invitations</a>
<div ui-view></div>
The problem is - users
state does not get triggered automatically on page load. I need to manually click on it and only then the corresponding UI-Router
state gets triggered.
Here's my config file:
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('users', {
url: "/users",
templateUrl: "assets/partials/users.html"
})
})