/**
 * Header tabs for discovery feed.
 */ import { Component } from '@angular/core' ; import { ActivatedRoute , Router } from '@angular/router' ; import { DiscoveryService } from '../discovery.service' ; import { Observable } from 'rxjs' ; @ Component ( { selector : 'm-discovery__tabs' , templateUrl : './tabs.component.html' , styleUrls : [ './tabs.component.ng.scss' ] , } ) export class DiscoveryTabsComponent { /**
     * If plus or not
     */ isPlusPage$ : Observable < boolean > = this . service . isPlusPage$ ; constructor ( public route , private router , private service ) { } param { string } url returns { boolean } public isLinkActive ( url ) { const currentUrl = this . router . url ; return url === currentUrl . split ( '?' ) [ 0 ] ; } }