Created
March 17, 2016 20:51
Klim
This file contains 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 {Injectable} from 'angular2/core'; | |
@Injectable() | |
export class VideoService { | |
getVideos() { | |
let videos = [ | |
{ | |
title: 'Canned Lightning', | |
src: 'vids/canned_lightning.mp4' | |
}, | |
{ | |
title: 'Fireworks', | |
src: 'vids/fireworks.mp4' | |
}, | |
{ | |
title: 'Green Spark', | |
src: 'vids/green_spark.mp4' | |
}, | |
{ | |
title: 'Jellyfish', | |
src: 'vids/jellyfish.mp4' | |
}, | |
{ | |
title: 'Cat', | |
src: 'vids/cat.mp4' | |
}, | |
{ | |
title: 'Minions - Banana Song', | |
src: 'vids/minions_banana_song.mp4' | |
}, | |
{ | |
title: 'Tron - Dance', | |
src: 'vids/tron_dance.mp4' | |
}, | |
{ | |
title: 'BB-8', | |
src: 'vids/bb_8.mp4' | |
} | |
]; | |
return videos; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment