Angular2 ComponentRouter prevents component reuse

Documentation https://angular.io/docs/ts/latest/guide/router.html states

... By default, a router reuses an instance of a component when it re-moves to the same type of component without first visiting another component. Parameters may vary between each reuse ...

but there is no clue on how to change this default behavior.

Can reuse be prevented?

+4
source share

Source: https://habr.com/ru/post/1650284/


All Articles