How to keep a Class Active when that page is not in stack in Ionic


#1

How to keep a class a class active if that class was visited in the past ?

Navigation
what I want :-
Page 1 => Page 2(selected some options) =>Page 1 => Page 2(options that were selected in the past should remain active)

what is happening :-
Page 1 => Page 2 (options selected ) => Page 1 => Page 2 (all the options are unselected and and not active)


#2

My design rule is “properties in pages should only be relied on while that page is active; anything that needs to persist further should be stored in a service”.