From 64fb48ac6054fe12b26f4ba8509faed4a03a71e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Fri, 20 Feb 2015 21:12:15 +0000 Subject: [PATCH] fixed zone.js --- components/app.js | 9 ++------- index.html | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/components/app.js b/components/app.js index 106e5f4..ef2614a 100644 --- a/components/app.js +++ b/components/app.js @@ -1,5 +1,4 @@ import * as ng from 'angular2/angular2'; -import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle'; import {Video} from 'components/video'; import {YoutubeService} from 'services/youtube'; @@ -13,13 +12,9 @@ import {YoutubeService} from 'services/youtube'; }) export class YoutubeApp { videos; - constructor(lc: LifeCycle, yt: YoutubeService) { + constructor(yt: YoutubeService) { this.videos = []; - this.lc = lc; - yt.init().then((videos) => { - this.videos = videos; - lc.tick(); // investigate why needed? - }); + yt.init().then((videos) => this.videos = videos); } } diff --git a/index.html b/index.html index aa57df0..4f6747f 100644 --- a/index.html +++ b/index.html @@ -34,9 +34,34 @@ Loading... Please wait +