2018-05-03 07:19:10 +00:00
|
|
|
import {Component, OnInit, OnDestroy, EventEmitter, Input, Output} from '@angular/core';
|
|
|
|
import { ActivatedRoute, Router } from '@angular/router';
|
2018-05-24 06:44:13 +00:00
|
|
|
// import { PagesComponent } from 'app/pages/pages.component';
|
2018-05-03 07:19:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
2018-05-28 10:46:47 +00:00
|
|
|
selector: 'of-member-policy-container',
|
|
|
|
templateUrl: './member-policy-container.component.html',
|
2018-05-03 07:19:10 +00:00
|
|
|
})
|
2018-05-28 10:46:47 +00:00
|
|
|
export class MemberPolicyContainerComponent implements OnInit, OnDestroy {
|
2018-05-03 07:19:10 +00:00
|
|
|
|
|
|
|
@Input() policyDisplay;
|
|
|
|
@Output() close = new EventEmitter();
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
private activatedRoute: ActivatedRoute,
|
|
|
|
private router: Router,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnDestroy() {
|
|
|
|
}
|
|
|
|
|
|
|
|
onTermsClose() {
|
|
|
|
this.policyDisplay = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
onCancel() {
|
|
|
|
this.close.emit();
|
|
|
|
}
|
|
|
|
}
|