import { ChangeDetectionStrategy , Component , ViewChild } from '@angular/core' ; import { TypeaheadInputComponent } from '../../../hashtags/typeahead-input/typeahead-input.component' ; import { ChannelEditService } from './edit.service' ; /**
 * Hashtags accordion pane component
 */ @ Component ( { selector : 'm-channelEdit__hashtags' , changeDetection : ChangeDetectionStrategy . OnPush , templateUrl : 'hashtags.component.html' , styleUrls : [ 'hashtags.component.ng.scss' ] , } ) export class ChannelEditHashtagsComponent { /**
     * Typeahead component
     */ @ ViewChild ( 'hashtagsTypeaheadInput' ) protected hashtagsTypeaheadInput : TypeaheadInputComponent ; param service constructor ( public service ) { } param hashtag addHashtagIntent ( hashtag ) { this . service . addHashtag ( hashtag ) ; if ( this . hashtagsTypeaheadInput ) { this . hashtagsTypeaheadInput . reset ( ) ; } } }