Обновление компонента вручную в Angular ⇐ CSS
-
Anonymous
Обновление компонента вручную в Angular
When I refresh a component in my Angular application (which uses version 17), the path 'localhost:4200/(path)' becomes 'localhost:4200'. This behavior is repeated with my other three components, with the exception of the HomeComponent. Despite this change in the path, the component is still visible on the screen. The drawback occurs when switching between different components: the page reloads when accessing a component (which should not happen), and transitions to the next component (which is displayed on the screen), but the path is not updated to 'localhost:4200/', except in the case of 'localhost:4200/home'. This behavior is due to the path configuration I have set: { path: '', redirectTo: '/home', pathMatch: 'full' }.
Before reloading the page After reloading the page I can still access the other components, but the path is not shown and the page reloads Proyect
I need to find a solution so that the path (after manually updating)
Источник: https://stackoverflow.com/questions/781 ... in-angular
When I refresh a component in my Angular application (which uses version 17), the path 'localhost:4200/(path)' becomes 'localhost:4200'. This behavior is repeated with my other three components, with the exception of the HomeComponent. Despite this change in the path, the component is still visible on the screen. The drawback occurs when switching between different components: the page reloads when accessing a component (which should not happen), and transitions to the next component (which is displayed on the screen), but the path is not updated to 'localhost:4200/', except in the case of 'localhost:4200/home'. This behavior is due to the path configuration I have set: { path: '', redirectTo: '/home', pathMatch: 'full' }.
Before reloading the page After reloading the page I can still access the other components, but the path is not shown and the page reloads Proyect
I need to find a solution so that the path (after manually updating)
Источник: https://stackoverflow.com/questions/781 ... in-angular
Мобильная версия