X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular%2Fvideos%2Fcomponents%2Fwatch%2Fvideos-watch.component.ts;h=6e212e8bc8afa72ec69fa9ba977d434c4ec3a6fd;hb=8140a704bbbecd149c68267545e4215579c9785c;hp=52c31fe325fc90a568fae02bb62aa063430d58af;hpb=da932efc8199e2d9fe5d830432fb3833865a9a42;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular/videos/components/watch/videos-watch.component.ts b/client/angular/videos/components/watch/videos-watch.component.ts index 52c31fe32..6e212e8bc 100644 --- a/client/angular/videos/components/watch/videos-watch.component.ts +++ b/client/angular/videos/components/watch/videos-watch.component.ts @@ -1,12 +1,13 @@ -import { Component, OnInit, ElementRef } from 'angular2/core'; -import { RouteParams, CanDeactivate, ComponentInstruction } from 'angular2/router'; +import { Component, OnInit, ElementRef } from '@angular/core'; +import { RouteParams, CanDeactivate, ComponentInstruction } from '@angular/router-deprecated'; + import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; // TODO import it with systemjs declare var WebTorrent: any; -import { Video } from '../../models/video'; -import { VideosService } from '../../services/videos.service'; +import { Video } from '../../video'; +import { VideosService } from '../../videos.service'; @Component({ selector: 'my-video-watch', @@ -22,7 +23,7 @@ export class VideosWatchComponent implements OnInit, CanDeactivate { numPeers: number; loading: boolean = false; - private _interval: number; + private _interval: NodeJS.Timer; private client: any; constructor(