import { ChangeDetectionStrategy , Component } from '@angular/core' ; import { ChannelEditService } from './edit.service' ; /**
 * Social Links accordion pane content
 */ @ Component ( { selector : 'm-channelEdit__socialLinks' , changeDetection : ChangeDetectionStrategy . OnPush , templateUrl : 'social-links.component.html' , } ) export class ChannelEditSocialLinksComponent { /**
     * Local state for URL input
     */ url : string = '' ; param service constructor ( public service ) { } /**
     * Adds social link and clears input
     */ addSocialLink ( ) { if ( ! this . url ) { return ; } this . service . addSocialLink ( this . url ) ; this . url = '' ; } }