2018-05-03 07:19:10 +00:00
|
|
|
import {Component, OnInit, OnDestroy, Input, EventEmitter, Output} from '@angular/core';
|
|
|
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
|
|
|
|
|
|
@Component({
|
2018-05-28 10:28:26 +00:00
|
|
|
selector: 'of-member-terms-container',
|
|
|
|
templateUrl: './member-terms-container.component.html',
|
2018-05-03 07:19:10 +00:00
|
|
|
})
|
2018-05-28 10:28:26 +00:00
|
|
|
export class MemberTermsContainerComponent implements OnInit, OnDestroy {
|
2018-05-03 07:19:10 +00:00
|
|
|
|
|
|
|
@Input() termsDisplay;
|
|
|
|
@Output() close = new EventEmitter();
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
private activatedRoute: ActivatedRoute,
|
|
|
|
private router: Router,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnDestroy() {
|
|
|
|
}
|
|
|
|
|
|
|
|
onTermsClose() {
|
|
|
|
this.termsDisplay = false;
|
|
|
|
}
|
|
|
|
onCancel() {
|
|
|
|
this.close.emit();
|
|
|
|
}
|
|
|
|
}
|