I have the following routes variable defined in my app-routing.module.ts:

const routes: Routes = 
[
{ path: '', redirectTo: '/users', pathMatch: 'full' },
{ path: 'users',  component: UsersComponent },
{ path: 'dashboard',  component: DashboardComponent }
];

With this current configuration, when I submit http://localhost:3000/users, 
the browser redirects to http://localhost:3000/users/users and then 
displays the user list binding in the html as expected. 

However, something seems off kilter for the browser to redirect from /users 
to /users/users.  If I remove the first route config with the redirectTo 
attribute then the browser stays on /users without redirecting to 
/users/users but in this scenario, the user list binding doesn't display as 
expected.  

Any idea what might be causing the redirect to /users/users?  Any idea how 
I can keep the browser on /users and get the user list binding to properly 
display at this uri?


-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to