import { ChangeDetectorRef , Component , Input , OnInit } from '@angular/core' ; import { ActivatedRoute , ParamMap } from '@angular/router' ; import { DiscoveryFeedsService } from './feeds.service' ; import { ConfigsService } from '../../../common/services/configs.service' ; import { MetaService } from '../../../common/services/meta.service' ; @ Component ( { selector : 'm-discovery__feedItem' , templateUrl : './feed-item.component.html' , } ) export class DiscoveryFeedItemComponent implements OnInit { @ Input ( ) entity ; @ Input ( ) openComments : boolean = false ; readonly cdnUrl : string ; constructor ( private configs , private cd ) { this . cdnUrl = configs . get ( 'cdn_url' ) ; } ngOnInit ( ) { } onDelete ( activity ) { this . entity = null ; this . cd . markForCheck ( ) ; this . cd . detectChanges ( ) ; } }