About the state of the stack when setRoot () and popToRoot are executed


#1

I want to know About the state of the stack when setRoot () and popToRoot are executed.

For example, There are PageA, PageB, PageC.
The following shows the status of the stack.
Is my recognition wrong?

How to use setRoot
PageA
↓push(PageB)
PageB
PageA
↓setRoot(PageC)
PageC

Hot to user popToRoot
PageA
↓push(PageB)
PageB
PageA
↓push(PageC)
PageC
PageB
PageA
↓popToRoot
PageA

The ionic official document does not describe in detail what happens to the state of the stack. I would like to confirm whether it is my recognition above. I am sorry for my poor English.