Skip to content

Instantly share code, notes, and snippets.

@kikill95
Created March 17, 2016 20:52
Show Gist options
  • Select an option

  • Save kikill95/dedec28efa06b8c35fd6 to your computer and use it in GitHub Desktop.

Select an option

Save kikill95/dedec28efa06b8c35fd6 to your computer and use it in GitHub Desktop.
Klim
import {Page} from 'ionic-framework/ionic';
import {VideoService} from '../../services/videos';
@Page({
templateUrl: 'build/pages/home/home.html',
providers: [VideoService]
})
export class HomePage {
chosenVideo: any;
constructor(private video: VideoService) {
this.chosenVideo = {
title: null,
src: null
};
}
chooseVideo(video) {
this.chosenVideo = video;
}
getChosenVideo() {
return this.chosenVideo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment