all page components do extend basecomponent and its common config service

This commit is contained in:
ty kayn 2019-09-09 10:57:08 +02:00
parent d2478c37a4
commit 8f8a258ecf
7 changed files with 46 additions and 21 deletions

View File

@ -1,13 +1,17 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({ @Component({
selector: 'framadate-create-or-retrieve', selector: 'framadate-create-or-retrieve',
templateUrl: './create-or-retrieve.component.html', templateUrl: './create-or-retrieve.component.html',
styleUrls: ['./create-or-retrieve.component.scss'] styleUrls: ['./create-or-retrieve.component.scss']
}) })
export class CreateOrRetrieveComponent implements OnInit { export class CreateOrRetrieveComponent extends BaseComponent implements OnInit {
constructor() { } constructor(public config: ConfigService) {
super(config);
}
ngOnInit() { ngOnInit() {
} }

View File

@ -1,13 +1,17 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({ @Component({
selector: 'framadate-end-confirmation', selector: 'framadate-end-confirmation',
templateUrl: './end-confirmation.component.html', templateUrl: './end-confirmation.component.html',
styleUrls: ['./end-confirmation.component.scss'] styleUrls: ['./end-confirmation.component.scss']
}) })
export class EndConfirmationComponent implements OnInit { export class EndConfirmationComponent extends BaseComponent implements OnInit {
constructor() { } constructor(public config: ConfigService) {
super(config);
}
ngOnInit() { ngOnInit() {
} }

View File

@ -1,16 +1,16 @@
import {Component, OnInit} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {ConfigService} from "../../config.service"; import {ConfigService} from "../../config.service";
import {BaseComponent} from "../base-page/base.component";
@Component({ @Component({
selector: 'framadate-home', selector: 'framadate-home',
templateUrl: './home.component.html', templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'] styleUrls: ['./home.component.scss']
}) })
export class HomeComponent implements OnInit { export class HomeComponent extends BaseComponent implements OnInit {
constructor(public config: ConfigService) { constructor(public config: ConfigService) {
super(config);
} }
ngOnInit() { ngOnInit() {

View File

@ -1,13 +1,17 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({ @Component({
selector: 'framadate-password', selector: 'framadate-password',
templateUrl: './password.component.html', templateUrl: './password.component.html',
styleUrls: ['./password.component.scss'] styleUrls: ['./password.component.scss']
}) })
export class PasswordComponent implements OnInit { export class PasswordComponent extends BaseComponent implements OnInit {
constructor() { } constructor(public config: ConfigService) {
super(config);
}
ngOnInit() { ngOnInit() {
} }

View File

@ -1,13 +1,18 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({ @Component({
selector: 'framadate-voting-choice', selector: 'framadate-voting-choice',
templateUrl: './voting-choice.component.html', templateUrl: './voting-choice.component.html',
styleUrls: ['./voting-choice.component.scss'] styleUrls: ['./voting-choice.component.scss']
}) })
export class VotingChoiceComponent implements OnInit { export class VotingChoiceComponent extends BaseComponent implements OnInit {
constructor(public config: ConfigService) {
super(config);
}
constructor() { }
ngOnInit() { ngOnInit() {
} }

View File

@ -1,13 +1,17 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({ @Component({
selector: 'framadate-voting-graph', selector: 'framadate-voting-graph',
templateUrl: './voting-graph.component.html', templateUrl: './voting-graph.component.html',
styleUrls: ['./voting-graph.component.scss'] styleUrls: ['./voting-graph.component.scss']
}) })
export class VotingGraphComponent implements OnInit { export class VotingGraphComponent extends BaseComponent implements OnInit {
constructor() { } constructor(public config: ConfigService) {
super(config);
}
ngOnInit() { ngOnInit() {
} }

View File

@ -1,13 +1,17 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {BaseComponent} from "../base-page/base.component";
import {ConfigService} from "../../config.service";
@Component({ @Component({
selector: 'framadate-voting-summary', selector: 'framadate-voting-summary',
templateUrl: './voting-summary.component.html', templateUrl: './voting-summary.component.html',
styleUrls: ['./voting-summary.component.scss'] styleUrls: ['./voting-summary.component.scss']
}) })
export class VotingSummaryComponent implements OnInit { export class VotingSummaryComponent extends BaseComponent implements OnInit {
constructor() { } constructor(public config: ConfigService) {
super(config);
}
ngOnInit() { ngOnInit() {
} }