File

src/app/pages/base-page/base.component.ts

Implements

OnInit

Metadata

selector framadate-base-page
styleUrls ./base.component.scss
templateUrl ./base.component.html

Index

Properties
Methods

Constructor

constructor(config: ConfigService)
Parameters :
Name Type Optional
config ConfigService No

Methods

checkValidity
checkValidity()
Returns : boolean
displayErrorMessage
displayErrorMessage()
Returns : boolean
ngOnInit
ngOnInit()
Returns : void

Properties

Public config
Type : ConfigService
import {Component, OnInit} from '@angular/core';
import {ConfigService} from '../../services/config.service';

@Component({
    selector: 'framadate-base-page',
    templateUrl: './base.component.html',
    styleUrls: ['./base.component.scss']
})
/**
 * base page is aware of the state of the filling
 */
export class BaseComponent implements OnInit {

    constructor(public config: ConfigService) {
    }

    ngOnInit() {
    }


    checkValidity() {
        // TODO with form controls
        this.config.todo();
        return true;
    }

    displayErrorMessage() {
        // TODO
        this.config.todo();
        return true;
    }
}
<h1>Ce composant est celui de base pour les pages</h1>
<a [routerLink]="'/step/end'" class="btn btn-block" i18n="@@confirm">
	{{"config.perfect"|translate}}
</a>

./base.component.scss

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""