Created
March 17, 2016 20:52
-
-
Save kikill95/dedec28efa06b8c35fd6 to your computer and use it in GitHub Desktop.
Klim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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