src/app/pages/base-page/base.component.ts
selector | framadate-base-page |
styleUrls | ./base.component.scss |
templateUrl | ./base.component.html |
Properties |
|
Methods |
constructor(config: ConfigService)
|
||||||
Defined in src/app/pages/base-page/base.component.ts:12
|
||||||
Parameters :
|
checkValidity |
checkValidity()
|
Defined in src/app/pages/base-page/base.component.ts:21
|
Returns :
boolean
|
displayErrorMessage |
displayErrorMessage()
|
Defined in src/app/pages/base-page/base.component.ts:27
|
Returns :
boolean
|
ngOnInit |
ngOnInit()
|
Defined in src/app/pages/base-page/base.component.ts:17
|
Returns :
void
|
Public config |
Type : ConfigService
|
Defined in src/app/pages/base-page/base.component.ts:14
|
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