From ec8d8440a893ba64075da2e57ea04c7976e0b303 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Sep 2016 22:49:31 +0200 Subject: Client: use templateUrl/styleUrls instead of require --- client/src/app/videos/video-list/video-list.component.ts | 4 ++-- client/src/app/videos/video-list/video-miniature.component.ts | 4 ++-- client/src/app/videos/video-list/video-sort.component.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'client/src/app/videos/video-list') diff --git a/client/src/app/videos/video-list/video-list.component.ts b/client/src/app/videos/video-list/video-list.component.ts index fa8e497aa..6b086e938 100644 --- a/client/src/app/videos/video-list/video-list.component.ts +++ b/client/src/app/videos/video-list/video-list.component.ts @@ -12,8 +12,8 @@ import { SearchService } from '../../shared'; @Component({ selector: 'my-videos-list', - styles: [ require('./video-list.component.scss') ], - template: require('./video-list.component.html') + styleUrls: [ './video-list.component.scss' ], + templateUrl: './video-list.component.html' }) export class VideoListComponent implements OnInit, OnDestroy { diff --git a/client/src/app/videos/video-list/video-miniature.component.ts b/client/src/app/videos/video-list/video-miniature.component.ts index 38317f832..f807d17ac 100644 --- a/client/src/app/videos/video-list/video-miniature.component.ts +++ b/client/src/app/videos/video-list/video-miniature.component.ts @@ -5,8 +5,8 @@ import { User } from '../../shared'; @Component({ selector: 'my-video-miniature', - styles: [ require('./video-miniature.component.scss') ], - template: require('./video-miniature.component.html') + styleUrls: [ './video-miniature.component.scss' ], + templateUrl: './video-miniature.component.html' }) export class VideoMiniatureComponent { diff --git a/client/src/app/videos/video-list/video-sort.component.ts b/client/src/app/videos/video-list/video-sort.component.ts index 0d76b54b7..ca94b07c2 100644 --- a/client/src/app/videos/video-list/video-sort.component.ts +++ b/client/src/app/videos/video-list/video-sort.component.ts @@ -4,7 +4,7 @@ import { SortField } from '../shared'; @Component({ selector: 'my-video-sort', - template: require('./video-sort.component.html') + templateUrl: './video-sort.component.html' }) export class VideoSortComponent { -- cgit v1.2.3