Angular2 router.navigate refresh page

前端 未结 5 1839
终归单人心
终归单人心 2020-11-29 09:42

This is how the routes and component look like:

routes.config

export const routes: RouterConfig = [
   { path: \'users\'         


        
5条回答
  •  星月不相逢
    2020-11-29 10:47

    I had the same effect (page refresh when navigating to details page) using a simple link. The solution was to use the angular link:

提交回复
热议问题