Ionic 3 - Pushing a page make the browser refreshing and navigate to homePage












0















First, sorry for my english, I will do my best to be understood !



My problem is : I simply push a signIn page through my logIn page, versy simple thing, BUT, when I click on my link, I see .5s the signIn view, and my browser refresh and go back on LogIn view...



(I'm using ionic3)



Simple code as possible :



<a class="light center" href="" (click)="pushSignInPage()"><i>J'ai déjà un compte</i></a>

pushSignInPage(){
this.navCtrl.push(SignInPage);}


Need help..



Thank you










share|improve this question

























  • Since you have mentioned your English skills and are presumably willing to learn and improve: In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm. Please fix it by editing your question (use "edit" to the right of "share"). Also, please unlearn Wren and Martin and fix your question. Thanks in advance.

    – Peter Mortensen
    Jan 20 at 15:11











  • It's helping me a lot, thanks...

    – Nicolas Larrode
    Jan 20 at 18:28
















0















First, sorry for my english, I will do my best to be understood !



My problem is : I simply push a signIn page through my logIn page, versy simple thing, BUT, when I click on my link, I see .5s the signIn view, and my browser refresh and go back on LogIn view...



(I'm using ionic3)



Simple code as possible :



<a class="light center" href="" (click)="pushSignInPage()"><i>J'ai déjà un compte</i></a>

pushSignInPage(){
this.navCtrl.push(SignInPage);}


Need help..



Thank you










share|improve this question

























  • Since you have mentioned your English skills and are presumably willing to learn and improve: In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm. Please fix it by editing your question (use "edit" to the right of "share"). Also, please unlearn Wren and Martin and fix your question. Thanks in advance.

    – Peter Mortensen
    Jan 20 at 15:11











  • It's helping me a lot, thanks...

    – Nicolas Larrode
    Jan 20 at 18:28














0












0








0


0






First, sorry for my english, I will do my best to be understood !



My problem is : I simply push a signIn page through my logIn page, versy simple thing, BUT, when I click on my link, I see .5s the signIn view, and my browser refresh and go back on LogIn view...



(I'm using ionic3)



Simple code as possible :



<a class="light center" href="" (click)="pushSignInPage()"><i>J'ai déjà un compte</i></a>

pushSignInPage(){
this.navCtrl.push(SignInPage);}


Need help..



Thank you










share|improve this question
















First, sorry for my english, I will do my best to be understood !



My problem is : I simply push a signIn page through my logIn page, versy simple thing, BUT, when I click on my link, I see .5s the signIn view, and my browser refresh and go back on LogIn view...



(I'm using ionic3)



Simple code as possible :



<a class="light center" href="" (click)="pushSignInPage()"><i>J'ai déjà un compte</i></a>

pushSignInPage(){
this.navCtrl.push(SignInPage);}


Need help..



Thank you







javascript ionic-framework ionic3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 20 at 18:25







Nicolas Larrode

















asked Jan 20 at 12:12









Nicolas LarrodeNicolas Larrode

11




11













  • Since you have mentioned your English skills and are presumably willing to learn and improve: In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm. Please fix it by editing your question (use "edit" to the right of "share"). Also, please unlearn Wren and Martin and fix your question. Thanks in advance.

    – Peter Mortensen
    Jan 20 at 15:11











  • It's helping me a lot, thanks...

    – Nicolas Larrode
    Jan 20 at 18:28



















  • Since you have mentioned your English skills and are presumably willing to learn and improve: In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm. Please fix it by editing your question (use "edit" to the right of "share"). Also, please unlearn Wren and Martin and fix your question. Thanks in advance.

    – Peter Mortensen
    Jan 20 at 15:11











  • It's helping me a lot, thanks...

    – Nicolas Larrode
    Jan 20 at 18:28

















Since you have mentioned your English skills and are presumably willing to learn and improve: In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm. Please fix it by editing your question (use "edit" to the right of "share"). Also, please unlearn Wren and Martin and fix your question. Thanks in advance.

– Peter Mortensen
Jan 20 at 15:11





Since you have mentioned your English skills and are presumably willing to learn and improve: In English, the subjective form of the singular first-person pronoun, "I", is capitalized, along with all its contractions such as I'll and I'm. Please fix it by editing your question (use "edit" to the right of "share"). Also, please unlearn Wren and Martin and fix your question. Thanks in advance.

– Peter Mortensen
Jan 20 at 15:11













It's helping me a lot, thanks...

– Nicolas Larrode
Jan 20 at 18:28





It's helping me a lot, thanks...

– Nicolas Larrode
Jan 20 at 18:28












2 Answers
2






active

oldest

votes


















0














hmm I'm assuming you're using Angular2 since you're using Ionic 3. When trying to send to another page I usually use Angular router.




  • https://angular.io/guide/router






share|improve this answer
























  • Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

    – Nicolas Larrode
    Jan 20 at 12:33











  • Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

    – Jaime Alonso
    Jan 20 at 12:41













  • Hi again, I just don't understand why this is not working for me...

    – Nicolas Larrode
    Jan 20 at 18:37



















0














Problem resolved.



Never use tag to push a view again <3.



Thanks a lot.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54276295%2fionic-3-pushing-a-page-make-the-browser-refreshing-and-navigate-to-homepage%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    hmm I'm assuming you're using Angular2 since you're using Ionic 3. When trying to send to another page I usually use Angular router.




    • https://angular.io/guide/router






    share|improve this answer
























    • Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

      – Nicolas Larrode
      Jan 20 at 12:33











    • Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

      – Jaime Alonso
      Jan 20 at 12:41













    • Hi again, I just don't understand why this is not working for me...

      – Nicolas Larrode
      Jan 20 at 18:37
















    0














    hmm I'm assuming you're using Angular2 since you're using Ionic 3. When trying to send to another page I usually use Angular router.




    • https://angular.io/guide/router






    share|improve this answer
























    • Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

      – Nicolas Larrode
      Jan 20 at 12:33











    • Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

      – Jaime Alonso
      Jan 20 at 12:41













    • Hi again, I just don't understand why this is not working for me...

      – Nicolas Larrode
      Jan 20 at 18:37














    0












    0








    0







    hmm I'm assuming you're using Angular2 since you're using Ionic 3. When trying to send to another page I usually use Angular router.




    • https://angular.io/guide/router






    share|improve this answer













    hmm I'm assuming you're using Angular2 since you're using Ionic 3. When trying to send to another page I usually use Angular router.




    • https://angular.io/guide/router







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 20 at 12:22









    Jaime AlonsoJaime Alonso

    11




    11













    • Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

      – Nicolas Larrode
      Jan 20 at 12:33











    • Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

      – Jaime Alonso
      Jan 20 at 12:41













    • Hi again, I just don't understand why this is not working for me...

      – Nicolas Larrode
      Jan 20 at 18:37



















    • Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

      – Nicolas Larrode
      Jan 20 at 12:33











    • Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

      – Jaime Alonso
      Jan 20 at 12:41













    • Hi again, I just don't understand why this is not working for me...

      – Nicolas Larrode
      Jan 20 at 18:37

















    Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

    – Nicolas Larrode
    Jan 20 at 12:33





    Hi ! Not sure but i will check, another thing, i just test to create an other button to push my tabs view (from tabs ionic template) and it s work...

    – Nicolas Larrode
    Jan 20 at 12:33













    Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

    – Jaime Alonso
    Jan 20 at 12:41







    Hmm you can use ionic tabs as well. Here I leave you an example: stackblitz.com/edit/ionic3tabs

    – Jaime Alonso
    Jan 20 at 12:41















    Hi again, I just don't understand why this is not working for me...

    – Nicolas Larrode
    Jan 20 at 18:37





    Hi again, I just don't understand why this is not working for me...

    – Nicolas Larrode
    Jan 20 at 18:37













    0














    Problem resolved.



    Never use tag to push a view again <3.



    Thanks a lot.






    share|improve this answer




























      0














      Problem resolved.



      Never use tag to push a view again <3.



      Thanks a lot.






      share|improve this answer


























        0












        0








        0







        Problem resolved.



        Never use tag to push a view again <3.



        Thanks a lot.






        share|improve this answer













        Problem resolved.



        Never use tag to push a view again <3.



        Thanks a lot.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 20 at 20:10









        Nicolas LarrodeNicolas Larrode

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54276295%2fionic-3-pushing-a-page-make-the-browser-refreshing-and-navigate-to-homepage%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Liquibase includeAll doesn't find base path

            How to use setInterval in EJS file?

            Petrus Granier-Deferre