У меня есть модуль Angular 2, в котором я реализовал маршрутизацию и хотел бы сохранить состояния при навигации. Пользователь должен уметь: 1. Поиск документов с использованием поисковой формы 2. Перейдите к одному из результатов 3. вернуться к поисковому запросу - без связи с сервером.
Это возможно, включая RouteReuseStrategy. Вопрос в том: Как реализовать, чтобы документ не сохранялся?
Итак, должно быть сохранено состояние "документы" маршрутного маршрута и не должно быть сохранено состояние маршрута "документы/: id" '?