/** * 파 일 명: authentication.page.component.ts * 작성일자: 2018-12-20 * 작 성 자: 박병준 * 설 명: authentication page component를 정의한다. * 수정일시: * 수 정 자: * 수정내용: * 참고사항: */ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { of, Observable } from 'rxjs'; import { take, map, catchError } from 'rxjs/operators'; @Component({ selector: 'app-page-accounts-authentication', templateUrl: './authentication.page.component.html', styleUrls: ['./authentication.page.component.scss'], }) export class AuthenticationPageComponent implements OnInit { params$: Observable>; constructor( private activatedRoute: ActivatedRoute, ) { } ngOnInit(): void { this.params$ = this.activatedRoute.queryParamMap.pipe( take(1), map(params => { const _params = new Map(); _params.set('returnURL', params.get('returnURL')); return _params; }), catchError(error => { return of(error); }), ); } }