set ANDROID_HOME=C:\installation folder\sdk
set PATH={28eefed8cb8bfa9e2bbcfc2b6e9ab5ce72afab532b878349fead02da0ca94fca}PATH{28eefed8cb8bfa9e2bbcfc2b6e9ab5ce72afab532b878349fead02da0ca94fca};{28eefed8cb8bfa9e2bbcfc2b6e9ab5ce72afab532b878349fead02da0ca94fca}ANDROID_HOME{28eefed8cb8bfa9e2bbcfc2b6e9ab5ce72afab532b878349fead02da0ca94fca}\tools;{28eefed8cb8bfa9e2bbcfc2b6e9ab5ce72afab532b878349fead02da0ca94fca}ANDROID_HOME{28eefed8cb8bfa9e2bbcfc2b6e9ab5ce72afab532b878349fead02da0ca94fca}\platform-tools

/**
* Created by Tareq Boulakjar. from angulartypescript.com
*/
import {Page, NavController, NavParams} from 'ionic-angular';
@Page({
templateUrl: 'build/pages/play-video/play-video.html',
})
export class PlayVideoPage {
public video;
constructor(private nav: NavController, private navParams: NavParams) {
//when we navigate from the homepage to this page
//we send the clicked video, and here we get it
//using the NavParams : ) now we have our video
//we can show the details we want, we will need the title and videoId (id)
this.video = navParams.get('video');
}
}

We call the YouTube web service to retrieve the videos corresponding to our query.

angular 2 ionic 2 emulate

To view (run) your angular 2 ionic mobile app in a like Mobile environment (Andoird, IOs ) run the ionic serve with the option ( – l ) or (-lab)