commit 100eb0e369fd6a81e1b0d24c755b7aafefe74a9f
parent 21d90c9ea00dbf25d52711e763659eb941378f57
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 18 Mar 2018 19:15:28 +0100
Cleanup
Diffstat:
3 files changed, 4 insertions(+), 21 deletions(-)
diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts
@@ -1,5 +1,4 @@
-import {Component, Inject, PLATFORM_ID, ViewEncapsulation} from '@angular/core';
-import {isPlatformBrowser} from '@angular/common';
+import {Component, ViewEncapsulation} from '@angular/core';
@Component({
selector: 'app-main',
@@ -8,10 +7,5 @@ import {isPlatformBrowser} from '@angular/common';
encapsulation: ViewEncapsulation.None
})
export class MainComponent {
- isBrowser: boolean;
-
- constructor(@Inject(PLATFORM_ID) platformId: Object) {
- this.isBrowser = isPlatformBrowser(platformId);
- }
}
diff --git a/src/app/paper/paper.component.ts b/src/app/paper/paper.component.ts
@@ -1,5 +1,4 @@
-import {Component, Inject, OnInit, PLATFORM_ID, ViewEncapsulation} from '@angular/core';
-import {isPlatformBrowser} from '@angular/common';
+import {Component, OnInit, ViewEncapsulation} from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {ApiService, Paper} from '../api.service';
@@ -11,11 +10,9 @@ import {ApiService, Paper} from '../api.service';
})
export class PaperComponent implements OnInit {
uuid: string;
- isBrowser: boolean;
data: Paper;
- constructor(@Inject(PLATFORM_ID) platformId: Object, private route: ActivatedRoute, private apiService: ApiService) {
- this.isBrowser = isPlatformBrowser(platformId);
+ constructor(private route: ActivatedRoute, private apiService: ApiService) {
this.uuid = this.route.snapshot.params.paperUUID;
}
diff --git a/src/app/papers/papers.component.ts b/src/app/papers/papers.component.ts
@@ -1,5 +1,4 @@
-import {Component, Inject, PLATFORM_ID} from '@angular/core';
-import {isPlatformBrowser} from '@angular/common';
+import {Component} from '@angular/core';
@Component({
selector: 'app-papers',
@@ -7,11 +6,4 @@ import {isPlatformBrowser} from '@angular/common';
styleUrls: ['./papers.component.scss']
})
export class PapersComponent {
- pageTitle = 'Find Papers';
- pageSubtitle = 'Get the full blast of different Newspapers';
- isBrowser: boolean;
-
- constructor( @Inject(PLATFORM_ID) platformId: Object) {
- this.isBrowser = isPlatformBrowser(platformId);
- }
}