ngAfterContentInit() {
        this.route.params
            .pipe(rxjs_operators.map((params) => this.tabs.find((tab) => this.routeParam ? tab.route === params[this.routeParam] : tab.active)), rxjs_operators.delay(0), rxjs_operators.map((tab) => tab || this.tabs.first), rxjs_operators.filter((tab) => !!tab))
            .subscribe((tabToSelect) => {
            this.selectTab(tabToSelect);
            this.changeDetectorRef.markForCheck();
        });
    }
// TODO: refactoring this component, avoid change detection loop
refactoring this component, avoid change detection loop
refactoring this component avoid change detection loop
ngAfterContentInit() {
        this.route.params
            .pipe(rxjs_operators.map((params) => this.tabs.find((tab) => this.routeParam ? tab.route === params[this.routeParam] : tab.active)), rxjs_operators.delay(0), rxjs_operators.map((tab) => tab || this.tabs.first), rxjs_operators.filter((tab) => !!tab))
            .subscribe((tabToSelect) => {
            this.selectTab(tabToSelect);
            this.changeDetectorRef.markForCheck();
        });
    }
ngAfterContentInit ( ) { this . route . params . pipe ( rxjs_operators . map ( ( params ) => this . tabs . find ( ( tab ) => this . routeParam ? tab . route === params [ this . routeParam ] : tab . active ) ) , rxjs_operators . delay ( 0 ) , rxjs_operators . map ( ( tab ) => tab || this . tabs . first ) , rxjs_operators . filter ( ( tab ) => ! ! tab ) ) . subscribe ( ( tabToSelect ) => { this . selectTab ( tabToSelect ) ; this . changeDetectorRef . markForCheck ( ) ; } ) ; }
TODO: refactoring this component, avoid change detection loop
TODO : refactoring this component avoid change detection loop