constructor(
		private navCtrl: NavController,
		private navParams: NavParams,
		private plt: Platform
	) {
		this.width = this.plt.width();
		this.height = this.plt.height();
		this.isLand = this.plt.isLandscape();
		this.isPortrait = this.plt.isPortrait();
		this.isRTL = this.plt.isRTL;
		console.log('29 -- platform version: ', this.plt.version());
		this.currUrl = this.plt.url();
		this.currDir = this.plt.dir();
	}
Example #2
0
 constructor(platform: Platform) {
   //get platforms
   this.platforms = platform.platforms();
   //get platform's version
   console.log(platform.version());
 }