Remove command not working Ionic

Asked

Viewed 162 times

0

I’m having trouble with the navCtrl.push. The flow is as follows:

inserir a descrição da imagem aqui

On the pages 1.1, 1.2 e 1.3 I can go back and forth as many times as I want but when I click the back button I need to return to page 1.

To go to the next page I use the event click of the button like this:

(click)="quickAccess('Pagina1.1')"

And to return add navPop to my button of navbar.

THE MISTAKE

When I click back it’s coming back pieces by pastes from the pages 1.2, 1.2 e 1.3 Suppose I have sailed 10 times between these pastures he will return 10 times.

ATTEMPTS

I’m trying to follow the following thought when browsing for example the page 1.1 for 1.2 I must remove the 1.1 and so on, but I’m having this problem, how to do this, I’ve tried to do index for nome da view but none of them works.

WORTH REMEMBERING

It is important to know that there are other pages prior to PAGINA 1 the problem flow is only in this case, in the rest everything goes as expected.

1 answer

0


I found the problem !

According to this inssue in the Ionic team:

https://github.com/ionic-team/ionic/issues/12238

There is an error in the structure, the solution was to install the correction via npm as reported in the inssue:

npm install ionic-angular@nightly --save

So mine .remove() works perfectly now.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.