Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49215

Ionic 3 URL not updating

$
0
0

@yazpid wrote:

In my app.component.ts I set rootPage to LoginComponent like this:

import { Component } from '@angular/core';
import { Platform, IonicPage } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Deeplinks} from '@ionic-native/deeplinks';


@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage:any = 'login';

constructor(platform: Platform, statusBar: StatusBar, splashScreen:
             SplashScreen, private deeplinks: Deeplinks) {
    platform.ready().then(() => {
      statusBar.styleDefault();
      splashScreen.hide();

   });
  }
}

Then in my LoginComponent I use

this.navCtrl.setRoot('friend-list');

friend-list is component which is decorated by

@IonicPage({
 name: 'friend-list',
 segment: 'friend-list'
})

Problem is that I always in my browser I have static localhost like localhost:8100/#/login, whenever I am in my app, but if I enter localhost:8100/#/friend-list app goes properly to the component. What could cause this problem?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>