import {Component} from '@angular/core';
import {ActivatedRoute} from '@angular/router';

import {map} from 'rxjs/operators';


@Component({
    template: `
        <container-placeholder msg="{{tabId$ | async}}"></container-placeholder>
    `
})
export class CdTabsChildDemoComponent {

    constructor(
        private activatedRoute: ActivatedRoute
    ) {
    }

    tabId$ = this.activatedRoute.params
        .pipe(map(p => p['tabId']));

}
