change privacy of properties

This commit is contained in:
tykayn 2019-08-11 16:21:49 +02:00
parent d9b81d3d8e
commit d5e5550c54
11 changed files with 20 additions and 24 deletions

View File

@ -7,9 +7,9 @@ import {ConfigService} from '../config.service';
styleUrls: ['./debugger.component.scss'] styleUrls: ['./debugger.component.scss']
}) })
export class DebuggerComponent implements OnInit { export class DebuggerComponent implements OnInit {
private formIsValid = true; formIsValid = true;
constructor(private config: ConfigService) { constructor(public config: ConfigService) {
} }
ngOnInit() { ngOnInit() {

View File

@ -14,10 +14,7 @@ import {ConfigService} from '../config.service';
*/ */
export class FormContainerComponent implements OnInit { export class FormContainerComponent implements OnInit {
private progressionStep = 0; constructor(public config: ConfigService) {
constructor(private config: ConfigService) {
} }

View File

@ -13,7 +13,7 @@ export class AnswersComponent extends BaseComponent implements OnInit {
private answerList = []; private answerList = [];
constructor(config: ConfigService, constructor(public config: ConfigService,
@Inject(DOCUMENT) private document: any, @Inject(DOCUMENT) private document: any,
private cd: ChangeDetectorRef) { private cd: ChangeDetectorRef) {
super(config); super(config);

View File

@ -11,14 +11,13 @@ import {ConfigService} from '../../config.service';
*/ */
export class BaseComponent implements OnInit { export class BaseComponent implements OnInit {
constructor(protected config: ConfigService) { constructor(config: ConfigService) {
} }
ngOnInit() { ngOnInit() {
} }
checkValidity() { checkValidity() {
// TODO with form controls // TODO with form controls
return true; return true;

View File

@ -9,7 +9,7 @@ import {BaseComponent} from '../base-page/base.component';
}) })
export class DatesComponent extends BaseComponent implements OnInit { export class DatesComponent extends BaseComponent implements OnInit {
constructor(config: ConfigService) { constructor(public config: ConfigService) {
super(config); super(config);
} }

View File

@ -9,7 +9,7 @@ import {ConfigService} from '../../config.service';
}) })
export class KindComponent extends BaseComponent implements OnInit { export class KindComponent extends BaseComponent implements OnInit {
constructor(config: ConfigService) { constructor(public config: ConfigService) {
super(config); super(config);
} }

View File

@ -9,7 +9,7 @@ import {BaseComponent} from '../base-page/base.component';
}) })
export class PicturesComponent extends BaseComponent implements OnInit { export class PicturesComponent extends BaseComponent implements OnInit {
constructor(config: ConfigService) { constructor(public config: ConfigService) {
super(config); super(config);
} }

View File

@ -9,7 +9,7 @@ import {ConfigService} from '../../config.service';
}) })
export class ResumeComponent extends BaseComponent implements OnInit { export class ResumeComponent extends BaseComponent implements OnInit {
constructor(config: ConfigService) { constructor(public config: ConfigService) {
super(config); super(config);
} }

View File

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {BaseComponent} from '../base-page/base.component'; import {BaseComponent} from '../base-page/base.component';
import {ConfigService} from '../../config.service'; import {ConfigService} from '../../config.service';
@ -9,7 +9,7 @@ import {ConfigService} from '../../config.service';
}) })
export class VisibilityComponent extends BaseComponent implements OnInit { export class VisibilityComponent extends BaseComponent implements OnInit {
constructor(config: ConfigService) { constructor(public config: ConfigService) {
super(config); super(config);
} }

View File

@ -9,7 +9,7 @@ import {ConfigService} from '../../config.service';
}) })
export class NavigationComponent extends BaseComponent implements OnInit { export class NavigationComponent extends BaseComponent implements OnInit {
constructor(config: ConfigService) { constructor(public config: ConfigService) {
super(config); super(config);
} }

View File

@ -10,7 +10,7 @@
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2018",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],