Обновление компонента вручную в AngularCSS

Разбираемся в CSS
Ответить
Anonymous
 Обновление компонента вручную в Angular

Сообщение Anonymous »


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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»